pub enum Interpolation {
Step,
Linear,
Bezier,
}Expand description
How a Curve runs between its keys.
Variants§
Step
Holds each key’s value until the next key.
Linear
Joins the keys by straight lines.
Bezier
Joins the keys by cubic Beziers whose time handles lie a third of the way along the segment, so a segment from key
a to key b of duration d is, for u = (x - a.at) / d, the cubic through a.value, a.value + a.out,
b.value - b.in and b.value in u (handles are offsets in value, per component).
Trait Implementations§
Source§impl Clone for Interpolation
impl Clone for Interpolation
impl Copy for Interpolation
Source§impl Debug for Interpolation
impl Debug for Interpolation
impl Eq for Interpolation
Source§impl PartialEq for Interpolation
impl PartialEq for Interpolation
Source§impl Serialize for Interpolation
impl Serialize for Interpolation
impl StructuralPartialEq for Interpolation
Auto Trait Implementations§
impl Forget for Interpolation
impl Freeze for Interpolation
impl RefUnwindSafe for Interpolation
impl Send for Interpolation
impl Sync for Interpolation
impl Unpin for Interpolation
impl UnsafeUnpin for Interpolation
impl UnwindSafe for Interpolation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.