#[repr(C, packed(1))]pub struct _LEAP_BONE {
pub prev_joint: LEAP_VECTOR,
pub next_joint: LEAP_VECTOR,
pub width: f32,
pub rotation: LEAP_QUATERNION,
}Expand description
\ingroup Structs Describes a bone’s position and orientation.
Bones are members of the LEAP_DIGIT struct. @since 3.0.0
Fields§
§prev_joint: LEAP_VECTORThe base of the bone, closer to the heart. The bones origin. @since 3.0.0
next_joint: LEAP_VECTORThe end of the bone, further from the heart. @since 3.0.0
width: f32The average width of the flesh around the bone in millimeters. @since 3.0.0
rotation: LEAP_QUATERNIONRotation in world space from the forward direction. Convert the quaternion to a matrix to derive the basis vectors. @since 3.1.2
Trait Implementations§
Source§impl Clone for _LEAP_BONE
impl Clone for _LEAP_BONE
Source§fn clone(&self) -> _LEAP_BONE
fn clone(&self) -> _LEAP_BONE
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 moreimpl Copy for _LEAP_BONE
Auto Trait Implementations§
impl Freeze for _LEAP_BONE
impl RefUnwindSafe for _LEAP_BONE
impl Send for _LEAP_BONE
impl Sync for _LEAP_BONE
impl Unpin for _LEAP_BONE
impl UnwindSafe for _LEAP_BONE
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