Struct spectra::spline::Key [] [src]

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

A spline control point.

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

Fields

Time at which the Key should be reached.

Actual 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.