[][src]Enum splines::interpolation::Interpolation

pub enum Interpolation<T> {
    Step(T),
    Linear,
    Cosine,
    CatmullRom,
}

Available kind of interpolations.

Feel free to visit each variant for more documentation.

Variants

Step(T)

Hold a Key<T, _> until the sampling value 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 half the time 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

Linear interpolation between a key and the next one.

Cosine

Cosine interpolation between a key and the next one.

CatmullRom

Catmull-Rom interpolation, performing a cubic Hermite interpolation using four keys.

Trait Implementations

impl<T: Copy> Copy for Interpolation<T>[src]

impl<T> Default for Interpolation<T>[src]

fn default() -> Self[src]

Interpolation::Linear is the default.

impl<T: Clone> Clone for Interpolation<T>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for Interpolation<T>[src]

Auto Trait Implementations

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

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

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.