Hand.State


public final class Hand.State


The representation of the current state of Hand.

Summary

Public methods

boolean
equals(Object other)
final @NonNull Map<@NonNull HandJointType, @NonNull Pose>

Returns the current pose of each joint in the hand.

final @NonNull FloatBuffer

the FloatBuffer containing the current state of the hand.

final @NonNull TrackingState

the current TrackingState of the hand.

int

Public methods

equals

public boolean equals(Object other)

getHandJoints

Added in 1.0.0-alpha06
public final @NonNull Map<@NonNull HandJointType, @NonNull PosegetHandJoints()

Returns the current pose of each joint in the hand.

Returns
@NonNull Map<@NonNull HandJointType, @NonNull Pose>

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

getHandJointsBuffer

Added in 1.0.0-alpha06
public final @NonNull FloatBuffer getHandJointsBuffer()

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.

getTrackingState

Added in 1.0.0-alpha06
public final @NonNull TrackingState getTrackingState()

the current TrackingState of the hand.

hashCode

public int hashCode()