pub struct Track<T> { /* private fields */ }Expand description
A typed, independently interpolated animation channel.
Implementations§
Source§impl<T> Track<T>
impl<T> Track<T>
Sourcepub fn new(interpolation: Interpolation, keyframes: Vec<Keyframe<T>>) -> Self
pub fn new(interpolation: Interpolation, keyframes: Vec<Keyframe<T>>) -> Self
Creates a typed channel with its interpolation and keyframes.
Keyframes are checked when the containing clip is passed to
AvatarRuntime::play.
Sourcepub const fn interpolation(&self) -> Interpolation
pub const fn interpolation(&self) -> Interpolation
Returns the interpolation algorithm used by this track.
Trait Implementations§
impl<T: PartialEq> StructuralPartialEq for Track<T>
Auto Trait Implementations§
impl<T> Freeze for Track<T>
impl<T> RefUnwindSafe for Track<T>
impl<T> Send for Track<T>
impl<T> Sync for Track<T>
impl<T> Unpin for Track<T>
impl<T> UnsafeUnpin for Track<T>
impl<T> UnwindSafe for Track<T>
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