pub struct SkeletonPose {
pub joints: Vec<Joint>,
pub local_rots: Vec<[f32; 4]>,
pub root_pos: [f32; 3],
}Expand description
A full skeleton pose (rest skeleton + per-joint local rotations + root translation).
Fields§
§joints: Vec<Joint>§local_rots: Vec<[f32; 4]>Local rotation per joint [x, y, z, w].
root_pos: [f32; 3]Trait Implementations§
Source§impl Clone for SkeletonPose
impl Clone for SkeletonPose
Source§fn clone(&self) -> SkeletonPose
fn clone(&self) -> SkeletonPose
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SkeletonPose
impl RefUnwindSafe for SkeletonPose
impl Send for SkeletonPose
impl Sync for SkeletonPose
impl Unpin for SkeletonPose
impl UnsafeUnpin for SkeletonPose
impl UnwindSafe for SkeletonPose
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