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
t: Time
Time at which the Key
should be reached.
value: T
Actual value.
interpolation: Interpolation
Interpolation mode.
Methods
impl<T> Key<T>
[src]
fn new(t: Time, value: T, interpolation: Interpolation) -> Self
Create a new key.
Trait Implementations
impl<T: Copy> Copy for Key<T>
[src]
impl<T: Clone> Clone for Key<T>
[src]
fn clone(&self) -> Key<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more