pub struct BoneTransform { /* private fields */ }Expand description
A solved rigid transform from one bone’s local frame to skeleton space.
Produced by Skeleton::solve. It contains no scale or inverse transform;
use a surrounding group for whole-character scaling, reflection, and clipping.
Implementations§
Source§impl BoneTransform
impl BoneTransform
Sourcepub fn position(self) -> (f64, f64)
pub fn position(self) -> (f64, f64)
Returns the joint pivot in skeleton-local pixels, not composition pixels.
Sourcepub fn rotation(self) -> f64
pub fn rotation(self) -> f64
Returns the accumulated clockwise rotation in radians, without wrapping.
Trait Implementations§
Source§impl Clone for BoneTransform
impl Clone for BoneTransform
impl Copy for BoneTransform
Source§impl Debug for BoneTransform
impl Debug for BoneTransform
Source§impl PartialEq for BoneTransform
impl PartialEq for BoneTransform
impl StructuralPartialEq for BoneTransform
Auto Trait Implementations§
impl Forget for BoneTransform
impl Freeze for BoneTransform
impl Move for BoneTransform
impl RefUnwindSafe for BoneTransform
impl Send for BoneTransform
impl Sync for BoneTransform
impl Unpin for BoneTransform
impl UnsafeUnpin for BoneTransform
impl UnwindSafe for BoneTransform
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