Struct amethyst_animation::Sampler[][src]

pub struct Sampler<T> where
    T: InterpolationPrimitive
{ pub input: Vec<f32>, pub output: Vec<T>, pub function: InterpolationFunction<T>, }

Sampler defines a single animation for a single channel on a single component

Fields

Time of key frames

A simple example of this for animations that are defined with 4 evenly spaced key frames is vec![0., 1., 2., 3.].

Actual output data to interpolate

For input of size i, the output size differs depending on the interpolation function. The following list summarizes the size of the output for each interpolation function. For more details, please click through to each interpolation function's documentation.

How interpolation should be done

Trait Implementations

impl<T: Debug> Debug for Sampler<T> where
    T: InterpolationPrimitive
[src]

Formats the value using the given formatter. Read more

impl<T: Clone> Clone for Sampler<T> where
    T: InterpolationPrimitive
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T> Asset for Sampler<T> where
    T: InterpolationPrimitive + Send + Sync + 'static, 
[src]

NAME: &'static str = "animation::Sampler"

An identifier for this asset used for debugging.

The Data type the asset can be created from.

The ECS storage type to be used. You'll want to use VecStorage in most cases.

impl<T> Into<Result<ProcessingState<Sampler<T>>>> for Sampler<T> where
    T: InterpolationPrimitive + Send + Sync + 'static, 
[src]

Performs the conversion.

Auto Trait Implementations

impl<T> Send for Sampler<T> where
    T: Send

impl<T> Sync for Sampler<T> where
    T: Sync