Enum spectra::spline::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.

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.

impl Default for Interpolation
[src]

Interpolation::Linear is the default.