pub struct Track {
pub bone: BoneId,
pub property: Property,
pub interpolation: Interpolation,
pub times: Vec<f32>,
pub values: TrackValues,
}Expand description
One animated property of one bone.
Fields§
§bone: BoneIdBone index targeted by this track.
property: PropertyProperty animated on the target bone.
interpolation: InterpolationInterpolation mode used between keys.
times: Vec<f32>Keyframe times in seconds. Same length as the keyframe count (tangent elements in cubic tracks do not add times).
values: TrackValuesKey values, with cubic-spline tracks storing tangent triplets.
Implementations§
Source§impl Track
impl Track
Sourcepub fn value_index(&self, k: usize) -> usize
pub fn value_index(&self, k: usize) -> usize
Index into values of keyframe k’s value element (skips
tangents for cubic tracks).
Sourcepub fn start_time(&self) -> f32
pub fn start_time(&self) -> f32
First key time, or 0.0 for an empty track.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Track
impl RefUnwindSafe for Track
impl Send for Track
impl Sync for Track
impl Unpin for Track
impl UnsafeUnpin for Track
impl UnwindSafe for Track
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