pub struct SkeletonSnapshot { /* private fields */ }Implementations§
Source§impl SkeletonSnapshot
impl SkeletonSnapshot
pub fn new( parent_indices: Vec<i32>, rest_local_translations: Vec<Vec3A>, rest_local_rotations: Vec<Quat>, morph_count: usize, model_identity: u64, ) -> Result<Self, PoseReductionError>
pub fn from_model( model: &ModelArena, model_identity: u64, ) -> Result<Self, PoseReductionError>
pub fn from_model_with_morph_count( model: &ModelArena, model_identity: u64, morph_count: usize, ) -> Result<Self, PoseReductionError>
pub fn bone_count(&self) -> usize
pub fn morph_count(&self) -> usize
pub fn model_identity(&self) -> u64
pub fn parent_indices(&self) -> &[i32]
pub fn rest_local_translations(&self) -> &[Vec3A]
pub fn rest_local_rotations(&self) -> &[Quat]
Trait Implementations§
Source§impl Clone for SkeletonSnapshot
impl Clone for SkeletonSnapshot
Source§fn clone(&self) -> SkeletonSnapshot
fn clone(&self) -> SkeletonSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SkeletonSnapshot
impl Debug for SkeletonSnapshot
Source§impl PartialEq for SkeletonSnapshot
impl PartialEq for SkeletonSnapshot
impl StructuralPartialEq for SkeletonSnapshot
Auto Trait Implementations§
impl Freeze for SkeletonSnapshot
impl RefUnwindSafe for SkeletonSnapshot
impl Send for SkeletonSnapshot
impl Sync for SkeletonSnapshot
impl Unpin for SkeletonSnapshot
impl UnsafeUnpin for SkeletonSnapshot
impl UnwindSafe for SkeletonSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more