pub struct Keyframe {
pub time: f32,
pub value: Vec<f32>,
}Expand description
A single keyframe at a specific time.
Fields§
§time: f32Time in seconds from animation start.
value: Vec<f32>Value array — interpretation depends on the track target:
- Translation:
[x, y, z] - Rotation:
[qx, qy, qz, qw] - Scale:
[sx, sy, sz]
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Keyframe
impl<'de> Deserialize<'de> for Keyframe
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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