[−][src]Enum splines::interpolation::Interpolation
Available kind of interpolations.
Feel free to visit each variant for more documentation.
Variants
Step(T)
Hold a Key<T, _>
until the sampling value 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 half the time between the two keys; the second key will be in used afterwards. If you set it to1.0
, the first key will be kept until the next key. Set it to0.
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, performing a cubic Hermite interpolation using four keys.
Trait Implementations
impl<T: Copy> Copy for Interpolation<T>
[src]
impl<T> Default for Interpolation<T>
[src]
fn default() -> Self
[src]
Interpolation::Linear
is the default.
impl<T: Clone> Clone for Interpolation<T>
[src]
fn clone(&self) -> Interpolation<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Debug> Debug for Interpolation<T>
[src]
Auto Trait Implementations
impl<T> Send for Interpolation<T> where
T: Send,
T: Send,
impl<T> Sync for Interpolation<T> where
T: Sync,
T: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,