pub struct AnimationPoseSample<'a> { /* private fields */ }Expand description
Reusable frame-pair sampler for one animation phase.
Implementations§
Source§impl AnimationPoseSample<'_>
impl AnimationPoseSample<'_>
Sourcepub fn pose(&self, joint_index: u16) -> Option<JointPose>
pub fn pose(&self, joint_index: u16) -> Option<JointPose>
Joint pose at this sample’s precomputed looping phase.
Sourcepub fn gte_pose(&self, joint_index: u16) -> Option<GteJointPose>
pub fn gte_pose(&self, joint_index: u16) -> Option<GteJointPose>
Packed GTE-friendly joint pose at this sample’s phase.
This is available for current v2 .psxanim files. Legacy v1
files return None and callers can fall back to Self::pose.
Trait Implementations§
Source§impl<'a> Clone for AnimationPoseSample<'a>
impl<'a> Clone for AnimationPoseSample<'a>
Source§fn clone(&self) -> AnimationPoseSample<'a>
fn clone(&self) -> AnimationPoseSample<'a>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for AnimationPoseSample<'a>
impl<'a> Debug for AnimationPoseSample<'a>
impl<'a> Copy for AnimationPoseSample<'a>
Auto Trait Implementations§
impl<'a> Freeze for AnimationPoseSample<'a>
impl<'a> RefUnwindSafe for AnimationPoseSample<'a>
impl<'a> Send for AnimationPoseSample<'a>
impl<'a> Sync for AnimationPoseSample<'a>
impl<'a> Unpin for AnimationPoseSample<'a>
impl<'a> UnsafeUnpin for AnimationPoseSample<'a>
impl<'a> UnwindSafe for AnimationPoseSample<'a>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)