LEAP_PALM

Type Alias LEAP_PALM 

Source
pub type LEAP_PALM = _LEAP_PALM;
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

Aliased Type§

#[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, }

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