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

Linear interpolation

Spherical linear interpolation

Step interpolation

Catmull-Rom spline interpolation

Cubic Hermite spline interpolation

Generic function

Methods

impl<T> InterpolationFunction<T> where
    T: InterpolationPrimitive + Copy

Trait Implementations

impl<'de, T> Deserialize<'de> for InterpolationFunction<T> where
    T: InterpolationPrimitive

Deserialize this value from the given Serde deserializer. Read more

impl<T> Serialize for InterpolationFunction<T> where
    T: InterpolationPrimitive

Serialize this value into the given Serde serializer. Read more

impl<T> PartialEq<InterpolationFunction<T>> for InterpolationFunction<T> where
    T: InterpolationPrimitive

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T> Clone for InterpolationFunction<T> where
    T: Clone + InterpolationPrimitive

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T> Debug for InterpolationFunction<T> where
    T: InterpolationPrimitive

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for InterpolationFunction<T>

impl<T> Sync for InterpolationFunction<T>