_LEAP_PALM

Struct _LEAP_PALM 

Source
#[repr(C, packed(1))]
pub struct _LEAP_PALM { pub position: LEAP_VECTOR, pub stabilized_position: LEAP_VECTOR, pub velocity: LEAP_VECTOR, pub normal: LEAP_VECTOR, pub width: f32, pub direction: LEAP_VECTOR, pub orientation: LEAP_QUATERNION, }
Expand description

\ingroup Structs Properties associated with the palm of the hand. The Palm is a member of the LEAP_HAND struct. @since 3.0.0

Fields§

§position: LEAP_VECTOR

The center position of the palm in millimeters from the Ultraleap Tracking camera device origin. @since 3.0.0

§stabilized_position: LEAP_VECTOR

The time-filtered and stabilized position of the palm.

Smoothing and stabilization is performed in order to make this value more suitable for interaction with 2D content. The stabilized position lags behind the palm position by a variable amount, depending primarily on the speed of movement. @since 3.0.0

§velocity: LEAP_VECTOR

The rate of change of the palm position in millimeters per second. @since 3.0.0

§normal: LEAP_VECTOR

The normal vector to the palm. If your hand is flat, this vector will point downward, or “out” of the front surface of your palm. @since 3.0.0

§width: f32

The estimated width of the palm when the hand is in a flat position. @since 3.0.0

§direction: LEAP_VECTOR

The unit direction vector pointing from the palm position toward the fingers. @since 3.0.0

§orientation: LEAP_QUATERNION

The quaternion representing the palm’s orientation corresponding to the basis {normal x direction, -normal, -direction} @since 3.1.3

Trait Implementations§

Source§

impl Clone for _LEAP_PALM

Source§

fn clone(&self) -> _LEAP_PALM

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for _LEAP_PALM

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.