pub enum AnimationCurve {
Constant(f32),
Keyframes(Vec<(f32, f32)>),
MathDriven(MathFunction),
BezierKeyframes(Vec<BezierKey>),
}Expand description
A single float channel over normalized time [0, 1].
Variants§
Constant(f32)
Constant value.
Keyframes(Vec<(f32, f32)>)
Linear keyframes: list of (time, value) pairs sorted by time.
MathDriven(MathFunction)
Driven entirely by a MathFunction evaluated at time t.
BezierKeyframes(Vec<BezierKey>)
Cubic bezier keyframes: (time, value, in_tangent, out_tangent).
Implementations§
Trait Implementations§
Source§impl Clone for AnimationCurve
impl Clone for AnimationCurve
Source§fn clone(&self) -> AnimationCurve
fn clone(&self) -> AnimationCurve
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AnimationCurve
impl RefUnwindSafe for AnimationCurve
impl Send for AnimationCurve
impl Sync for AnimationCurve
impl Unpin for AnimationCurve
impl UnsafeUnpin for AnimationCurve
impl UnwindSafe for AnimationCurve
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