Trait spectra::anim::spline::Interpolate [−][src]
pub trait Interpolate: Copy { fn lerp(a: Self, b: Self, t: f32) -> Self; fn cubic_hermite(
_: (Self, f32),
a: (Self, f32),
b: (Self, f32),
_: (Self, f32),
t: f32
) -> Self { ... } }
Keys that can be interpolated in between. Implementing this trait is required to perform sampling on splines.
Required Methods
Provided Methods
fn cubic_hermite(
_: (Self, f32),
a: (Self, f32),
b: (Self, f32),
_: (Self, f32),
t: f32
) -> Self
_: (Self, f32),
a: (Self, f32),
b: (Self, f32),
_: (Self, f32),
t: f32
) -> Self
Cubic hermite interpolation.
Default to Self::lerp
.
Implementations on Foreign Types
impl Interpolate for f32
[src]
impl Interpolate for f32