Struct Keyframe
pub struct Keyframe {
pub time: f32,
pub pre: [f32; 3],
pub post: [f32; 3],
pub interpolation: Interpolation,
}Expand description
One keyframe (Keyframe): at time seconds, the value arriving (pre) and the value leaving
(post), and how the channel moves into it.
Fields§
§time: f32When, in seconds from the animation’s start.
pre: [f32; 3]The value the channel arrives at.
post: [f32; 3]The value it leaves from.
interpolation: InterpolationHow the channel moves into this keyframe from the one before.
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