Enum spectra::spline::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.
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 Clone for Interpolation
[src]
fn clone(&self) -> Interpolation
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
impl Debug for Interpolation
[src]
impl Default for Interpolation
[src]
fn default() -> Self
Interpolation::Linear
is the default.