pub struct Keyframe {
pub time: f32,
pub value: f32,
pub tan_in: f32,
pub tan_out: f32,
}Expand description
A single keyframe: (time, value).
Fields§
§time: f32§value: f32§tan_in: f32Optional in-tangent for Hermite interpolation.
tan_out: f32Optional out-tangent for Hermite interpolation.
Implementations§
Trait Implementations§
impl Copy for Keyframe
impl StructuralPartialEq for Keyframe
Auto Trait Implementations§
impl Freeze for Keyframe
impl RefUnwindSafe for Keyframe
impl Send for Keyframe
impl Sync for Keyframe
impl Unpin for Keyframe
impl UnsafeUnpin for Keyframe
impl UnwindSafe for Keyframe
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