Hand.State
public final class Hand.State
The representation of the current state of Hand.
Summary
Public methods |
|
|---|---|
boolean |
|
final @NonNull Map<@NonNull HandJointType, @NonNull Pose> |
Returns the current pose of each joint in the hand. |
final @NonNull FloatBuffer |
the |
final @NonNull TrackingState |
the current |
int |
hashCode() |
Public methods
getHandJoints
public final @NonNull Map<@NonNull HandJointType, @NonNull Pose> getHandJoints()
Returns the current pose of each joint in the hand.
| Returns | |
|---|---|
@NonNull Map<@NonNull HandJointType, @NonNull Pose> |
a map of |
getHandJointsBuffer
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
public final @NonNull TrackingState getTrackingState()
the current TrackingState of the hand.