pub enum InterpolationFunction<T>where
T: InterpolationPrimitive,{
Linear,
SphericalLinear,
QuasiSphericalLinear,
Step,
CatmullRomSpline,
CubicSpline,
Function(fn(_: f32, _: &[f32], _: &[T], _: bool) -> T),
}
Expand description
Supported interpolation functions
Variants§
Linear
Linear interpolation
SphericalLinear
Spherical linear interpolation
QuasiSphericalLinear
Quasi spherical linear interpolation
Step
Step interpolation
CatmullRomSpline
Catmull-Rom spline interpolation
CubicSpline
Cubic Hermite spline interpolation
Function(fn(_: f32, _: &[f32], _: &[T], _: bool) -> T)
Generic function
Implementations§
source§impl<T> InterpolationFunction<T>where
T: InterpolationPrimitive + Clone,
impl<T> InterpolationFunction<T>where
T: InterpolationPrimitive + Clone,
Trait Implementations§
source§impl<T: Clone> Clone for InterpolationFunction<T>where
T: InterpolationPrimitive,
impl<T: Clone> Clone for InterpolationFunction<T>where
T: InterpolationPrimitive,
source§fn clone(&self) -> InterpolationFunction<T>
fn clone(&self) -> InterpolationFunction<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more