Struct splines::Key[][src]

pub struct Key<T> {
    pub t: f32,
    pub value: T,
    pub interpolation: Interpolation,
}

A spline control point.

This type associates a value at a given interpolation parameter value. It also contains an interpolation hint used to determine how to interpolate values on the segment defined by this key and the next one – if existing.

Fields

Interpolation parameter at which the Key should be reached.

Held value.

Interpolation mode.

Methods

impl<T> Key<T>
[src]

Create a new key.

Trait Implementations

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

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

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