Hand.State


class Hand.State


The representation of the current state of Hand.

Summary

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

Map<HandJointTypePose>

Returns the current pose of each joint in the hand.

FloatBuffer

the FloatBuffer containing the current state of the hand.

TrackingState

the current TrackingState of the hand.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

handJoints

Added in 1.0.0-alpha06
val handJointsMap<HandJointTypePose>

Returns the current pose of each joint in the hand.

Returns
Map<HandJointTypePose>

a map of HandJointType to Pose representing the current pose of each joint in the hand.

handJointsBuffer

Added in 1.0.0-alpha06
val handJointsBufferFloatBuffer

the FloatBuffer containing the current state of the hand. It contains an array of 182 floats (26 joints * 7 values per joint) which represent the poses of all hand joints. Each hand joint pose consists of 7 float values that represent rotation (x, y, z, w) and translation (x, y, z) as defined in Quaternion and Vector3 respectively.. The order of the joints within the array follows the order in which the joints are defined in HandJointType.

trackingState

Added in 1.0.0-alpha06
val trackingStateTrackingState

the current TrackingState of the hand.