Class ArticulatedHandPose
Shape of an articulated hand defined by joint poses.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Utilities
Assembly: cs.temp.dll.dll
Syntax
public class ArticulatedHandPose
Constructors
ArticulatedHandPose()
Declaration
public ArticulatedHandPose()
ArticulatedHandPose(MixedRealityPose[])
Declaration
public ArticulatedHandPose(MixedRealityPose[] _localJointPoses)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityPose[] | _localJointPoses |
Methods
ComputeJointPoses(Handedness, Quaternion, Vector3, MixedRealityPose[])
Compute world space poses from camera-space joint data.
Declaration
public void ComputeJointPoses(Handedness handedness, Quaternion rotation, Vector3 position, MixedRealityPose[] jointsOut)
Parameters
Type | Name | Description |
---|---|---|
Handedness | handedness | Handedness of the resulting pose |
Quaternion | rotation | Rotational offset of the resulting pose |
Vector3 | position | Translational offset of the resulting pose |
MixedRealityPose[] | jointsOut | Output array of joint poses |
Copy(ArticulatedHandPose)
Copy data from another articulated hand pose.
Declaration
public void Copy(ArticulatedHandPose other)
Parameters
Type | Name | Description |
---|---|---|
ArticulatedHandPose | other |
FromJson(String)
Deserialize pose data from JSON format.
Declaration
public void FromJson(string json)
Parameters
Type | Name | Description |
---|---|---|
String | json |
GetGesturePose(ArticulatedHandPose.GestureId)
Get pose data for a supported gesture.
Declaration
public static ArticulatedHandPose GetGesturePose(ArticulatedHandPose.GestureId gesture)
Parameters
Type | Name | Description |
---|---|---|
ArticulatedHandPose.GestureId | gesture |
Returns
Type | Description |
---|---|
ArticulatedHandPose |
GetLocalJointPose(TrackedHandJoint, Handedness)
Declaration
public MixedRealityPose GetLocalJointPose(TrackedHandJoint joint, Handedness handedness)
Parameters
Type | Name | Description |
---|---|---|
TrackedHandJoint | joint | |
Handedness | handedness |
Returns
Type | Description |
---|---|
MixedRealityPose |
InterpolateOffsets(ArticulatedHandPose, ArticulatedHandPose, Single)
Blend between two hand poses.
Declaration
public void InterpolateOffsets(ArticulatedHandPose poseA, ArticulatedHandPose poseB, float value)
Parameters
Type | Name | Description |
---|---|---|
ArticulatedHandPose | poseA | |
ArticulatedHandPose | poseB | |
Single | value |
ParseFromJointPoses(MixedRealityPose[], Handedness, Quaternion, Vector3)
Take world space joint poses from any hand and convert into right-hand, camera-space poses.
Declaration
public void ParseFromJointPoses(MixedRealityPose[] joints, Handedness handedness, Quaternion rotation, Vector3 position)
Parameters
Type | Name | Description |
---|---|---|
MixedRealityPose[] | joints | Input joint poses |
Handedness | handedness | Handedness of the input data |
Quaternion | rotation | Rotational offset of the input data |
Vector3 | position | Translational offset of the input data |
SetZero()
Set all poses to zero.
Declaration
public void SetZero()
ToJson()
Serialize pose data to JSON format.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
String |