Struct leap_sys::_LEAP_BONE
source · [−]#[repr(C, packed)]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_VECTOR
The base of the bone, closer to the heart. The bones origin. @since 3.0.0
next_joint: LEAP_VECTOR
The end of the bone, further from the heart. @since 3.0.0
width: f32
The average width of the flesh around the bone in millimeters. @since 3.0.0
rotation: LEAP_QUATERNION
Rotation in world space from the forward direction. Convert the quaternion to a matrix to derive the basis vectors. @since 3.1.2
Trait Implementations
sourceimpl Clone for _LEAP_BONE
impl Clone for _LEAP_BONE
sourcefn clone(&self) -> _LEAP_BONE
fn clone(&self) -> _LEAP_BONE
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for _LEAP_BONE
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more