pub struct AnimClip { /* private fields */ }Expand description
Uniform sampled skeletal-animation clip.
Stores frame_count * joint_count validated local Transform samples in
row-major frame order. Construction is validated through
super::create_clip.
Donor: oa::AnimClip.
Implementations§
Source§impl AnimClip
impl AnimClip
Sourcepub fn skeleton_id(&self) -> u32
pub fn skeleton_id(&self) -> u32
Skeleton identity carried through sampling.
Sourcepub fn joint_count(&self) -> u32
pub fn joint_count(&self) -> u32
Joints per frame.
Sourcepub fn frame_count(&self) -> u32
pub fn frame_count(&self) -> u32
Complete frames stored.
Sourcepub fn frames_per_second(&self) -> f32
pub fn frames_per_second(&self) -> f32
Uniform sampling rate.
Sourcepub fn duration_seconds(&self) -> f64
pub fn duration_seconds(&self) -> f64
Clip length in seconds: (frame_count - 1) / fps, or zero for a
single-frame clip.
Sourcepub fn sample(
&self,
time_seconds: f64,
wrap_mode: AnimWrapMode,
) -> Result<SkelPose>
pub fn sample( &self, time_seconds: f64, wrap_mode: AnimWrapMode, ) -> Result<SkelPose>
Sample the clip at time_seconds under wrap_mode.
Convenience delegate of super::sample_clip.
§Errors
Returns an error when time_seconds is not finite.
Trait Implementations§
impl StructuralPartialEq for AnimClip
Auto Trait Implementations§
impl Forget for AnimClip
impl Freeze for AnimClip
impl Move for AnimClip
impl RefUnwindSafe for AnimClip
impl Send for AnimClipwhere
RawVecInner: Send,
impl Sync for AnimClipwhere
RawVecInner: Sync,
impl Unpin for AnimClip
impl UnsafeUnpin for AnimClip
impl UnwindSafe for AnimClipwhere
RawVecInner: UnwindSafe,
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