Hand.State


class Hand.State : Trackable.State


The representation of the current state of a Hand.

The state consists of 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.

Summary

Public functions

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

Returns a string representation of Hand.State for debugging.

Public properties

Map<HandJointTypePose>

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

FloatBuffer

the FloatBuffer containing the current state of the hand

Hand

self-reference to the object that owns this state

open TrackingState

the current androidx.xr.arcore.TrackingState of the hand

Public functions

equals

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Returns a string representation of Hand.State for debugging.

Note: Not intended for production use.

Public properties

handJoints

Added in 1.0.0-beta02
val handJointsMap<HandJointTypePose>

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

handJointsBuffer

Added in 1.0.0-beta02
val handJointsBufferFloatBuffer

the FloatBuffer containing the current state of the hand

owner

Added in 1.0.0-beta02
val ownerHand

self-reference to the object that owns this state

trackingState

open val trackingStateTrackingState

the current androidx.xr.arcore.TrackingState of the hand