Add Bézier curves.

This commit is contained in:
Dimitri Sabadie
2019-09-23 17:06:32 +02:00
parent e76f18ac5b
commit b05582d653
7 changed files with 148 additions and 40 deletions

View File

@@ -26,12 +26,12 @@ pub struct Key<T, V> {
/// Carried value.
pub value: V,
/// Interpolation mode.
pub interpolation: Interpolation<T>
pub interpolation: Interpolation<T, V>
}
impl<T, V> Key<T, V> {
/// Create a new key.
pub fn new(t: T, value: V, interpolation: Interpolation<T>) -> Self {
pub fn new(t: T, value: V, interpolation: Interpolation<T, V>) -> Self {
Key { t, value, interpolation }
}
}