pub enum KeyframeInterp {
Linear,
Step,
SmoothStep,
}Expand description
How adjacent keyframes are interpolated.
Variants§
Linear
Straight-line interpolation.
Step
Step function — value snaps to the left keyframe until the next one.
SmoothStep
Hermite smoothstep s = t² · (3 − 2t) between each pair of keys.
Trait Implementations§
Source§impl Clone for KeyframeInterp
impl Clone for KeyframeInterp
impl Copy for KeyframeInterp
Source§impl Debug for KeyframeInterp
impl Debug for KeyframeInterp
Source§impl Default for KeyframeInterp
impl Default for KeyframeInterp
impl Eq for KeyframeInterp
Source§impl PartialEq for KeyframeInterp
impl PartialEq for KeyframeInterp
impl StructuralPartialEq for KeyframeInterp
Auto Trait Implementations§
impl Freeze for KeyframeInterp
impl RefUnwindSafe for KeyframeInterp
impl Send for KeyframeInterp
impl Sync for KeyframeInterp
impl Unpin for KeyframeInterp
impl UnsafeUnpin for KeyframeInterp
impl UnwindSafe for KeyframeInterp
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