Enum amethyst_animation::InterpolationFunction [−][src]
pub enum InterpolationFunction<T> where
T: InterpolationPrimitive, { Linear, SphericalLinear, QuasiSphericalLinear, Step, CatmullRomSpline, CubicSpline, Function(fn(f32, &[f32], &[T], bool) -> T), }
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
Methods
impl<T> InterpolationFunction<T> where
T: InterpolationPrimitive + Copy,
[src]
impl<T> InterpolationFunction<T> where
T: InterpolationPrimitive + Copy,
Trait Implementations
impl<'de, T> Deserialize<'de> for InterpolationFunction<T> where
T: InterpolationPrimitive,
[src]
impl<'de, T> Deserialize<'de> for InterpolationFunction<T> where
T: InterpolationPrimitive,
fn deserialize<__D>(
__deserializer: __D
) -> Result<InterpolationFunction<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<InterpolationFunction<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T> Clone for InterpolationFunction<T> where
T: Clone + InterpolationPrimitive,
[src]
impl<T> Clone for InterpolationFunction<T> where
T: Clone + InterpolationPrimitive,
fn clone(&self) -> InterpolationFunction<T>
[src]
fn clone(&self) -> InterpolationFunction<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T> Debug for InterpolationFunction<T> where
T: InterpolationPrimitive,
[src]
impl<T> Debug for InterpolationFunction<T> where
T: InterpolationPrimitive,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<T> Serialize for InterpolationFunction<T> where
T: InterpolationPrimitive,
[src]
impl<T> Serialize for InterpolationFunction<T> where
T: InterpolationPrimitive,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<T> PartialEq<InterpolationFunction<T>> for InterpolationFunction<T> where
T: InterpolationPrimitive,
[src]
impl<T> PartialEq<InterpolationFunction<T>> for InterpolationFunction<T> where
T: InterpolationPrimitive,
Auto Trait Implementations
impl<T> Send for InterpolationFunction<T>
impl<T> Send for InterpolationFunction<T>
impl<T> Sync for InterpolationFunction<T>
impl<T> Sync for InterpolationFunction<T>