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