Enum amethyst_animation::InterpolationFunction [−]
pub enum InterpolationFunction<T> where
T: InterpolationPrimitive, { Linear, SphericalLinear, Step, CatmullRomSpline, CubicSpline, Function(fn(f32, &[f32], &[T], bool) -> T), }
Supported interpolation functions
Variants
LinearLinear interpolation
SphericalLinearSpherical linear interpolation
StepStep interpolation
CatmullRomSplineCatmull-Rom spline interpolation
CubicSplineCubic Hermite spline interpolation
Function(fn(f32, &[f32], &[T], bool) -> T)Generic function
Methods
impl<T> InterpolationFunction<T> where
T: InterpolationPrimitive + Copy,
impl<T> InterpolationFunction<T> where
T: InterpolationPrimitive + Copy, Trait Implementations
impl<'de, T> Deserialize<'de> for InterpolationFunction<T> where
T: InterpolationPrimitive,
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>,
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> Serialize for InterpolationFunction<T> where
T: InterpolationPrimitive,
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,
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,
impl<T> PartialEq<InterpolationFunction<T>> for InterpolationFunction<T> where
T: InterpolationPrimitive, fn eq(&self, other: &InterpolationFunction<T>) -> bool
fn eq(&self, other: &InterpolationFunction<T>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl<T> Clone for InterpolationFunction<T> where
T: Clone + InterpolationPrimitive,
impl<T> Clone for InterpolationFunction<T> where
T: Clone + InterpolationPrimitive, fn clone(&self) -> InterpolationFunction<T>
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,
impl<T> Debug 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>