Enum splines::Interpolation[][src]

pub enum Interpolation {
    Step(f32),
    Linear,
    Cosine,
    CatmullRom,
}

Interpolation mode.

Variants

Hold a Key until the time passes the normalized step threshold, in which case the next key is used.

Note: if you set the threshold to 0.5, the first key will be used until the time is half between the two keys; the second key will be in used afterwards. If you set it to 1.0, the first key will be kept until the next key. Set it to 0. and the first key will never be used.

Linear interpolation between a key and the next one.

Cosine interpolation between a key and the next one.

Catmull-Rom interpolation.

Trait Implementations

impl Copy for Interpolation
[src]

impl Clone for Interpolation
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Interpolation
[src]

Formats the value using the given formatter. Read more

impl Default for Interpolation
[src]

Interpolation::Linear is the default.

Auto Trait Implementations