Enum splines::Interpolation [−][src]
pub enum Interpolation { Step(f32), Linear, Cosine, CatmullRom, }
Interpolation mode.
Variants
Step(f32)
Hold a Key
until the time 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 the time is half
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.
Trait Implementations
impl Copy for Interpolation
[src]
impl Copy for Interpolation
impl Clone for Interpolation
[src]
impl Clone for Interpolation
fn clone(&self) -> Interpolation
[src]
fn clone(&self) -> Interpolation
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 Debug for Interpolation
[src]
impl Debug for Interpolation
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Interpolation
[src]
impl Default for Interpolation
Auto Trait Implementations
impl Send for Interpolation
impl Send for Interpolation
impl Sync for Interpolation
impl Sync for Interpolation