Hand.State


public final class Hand.State implements 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 methods

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

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

final @NonNull FloatBuffer

the FloatBuffer containing the current state of the hand

@NonNull TrackingState

the current TrackingState of the hand

int

Public methods

equals

public boolean equals(Object other)

getHandJoints

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

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

getHandJointsBuffer

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

the FloatBuffer containing the current state of the hand

getTrackingState

public @NonNull TrackingState getTrackingState()

the current TrackingState of the hand

hashCode

public int hashCode()