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 |
|
final @NonNull Map<@NonNull HandJointType, @NonNull Pose> |
a map of |
final @NonNull FloatBuffer |
the |
final @NonNull Hand |
getOwner()self-reference to the object that owns this state. |
@NonNull TrackingState |
the current |
int |
hashCode() |
Public methods
getHandJoints
public final @NonNull Map<@NonNull HandJointType, @NonNull Pose> getHandJoints()
a map of HandJointType to Pose representing the current pose of each joint in the hand
getHandJointsBuffer
public final @NonNull FloatBuffer getHandJointsBuffer()
the FloatBuffer containing the current state of the hand
getOwner
public final @NonNull Hand getOwner()
self-reference to the object that owns this state.
getTrackingState
public @NonNull TrackingState getTrackingState()
the current androidx.xr.arcore.TrackingState of the hand