Class HandPoseUtils
Utilities for detecting hand poses. useful for systems without native gesture support and for raising your own events based on specific hand pose values.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Utilities
Assembly: cs.temp.dll.dll
Syntax
public static class HandPoseUtils
Methods
IndexFingerCurl(Handedness)
Returns curl of ranging from 0 to 1. 1 if index finger curled/closer to wrist. 0 if the finger is not curled.
Declaration
public static float IndexFingerCurl(Handedness handedness)
Parameters
Type | Name | Description |
---|---|---|
Handedness | handedness | Handedness to query joint pose against. |
Returns
Type | Description |
---|---|
Single | Float ranging from 0 to 1. 0 if index finger is straight/not curled, 1 if index finger is curled |
IsIndexGrabbing(Handedness)
Returns true if index finger tip is closer to wrist than index knuckle joint.
Declaration
public static bool IsIndexGrabbing(Handedness hand)
Parameters
Type | Name | Description |
---|---|---|
Handedness | hand | Hand to query joint pose against. |
Returns
Type | Description |
---|---|
Boolean |
IsMiddleGrabbing(Handedness)
Returns true if middle finger tip is closer to wrist than middle knuckle joint.
Declaration
public static bool IsMiddleGrabbing(Handedness hand)
Parameters
Type | Name | Description |
---|---|---|
Handedness | hand | Hand to query joint pose against. |
Returns
Type | Description |
---|---|
Boolean |
IsThumbGrabbing(Handedness)
Returns true if middle thumb tip is closer to pinky knuckle than thumb knuckle joint.
Declaration
public static bool IsThumbGrabbing(Handedness hand)
Parameters
Type | Name | Description |
---|---|---|
Handedness | hand | Hand to query joint pose against. |
Returns
Type | Description |
---|---|
Boolean |
MiddleFingerCurl(Handedness)
Returns curl of middle finger ranging from 0 to 1. 1 if index finger curled/closer to wrist. 0 if the finger is not curled.
Declaration
public static float MiddleFingerCurl(Handedness handedness)
Parameters
Type | Name | Description |
---|---|---|
Handedness | handedness | Handedness to query joint pose against. |
Returns
Type | Description |
---|---|
Single | Float ranging from 0 to 1. 0 if middle finger is straight/not curled, 1 if middle finger is curled |
PinkyFingerCurl(Handedness)
Returns curl of pinky finger ranging from 0 to 1. 1 if pinky finger curled/closer to wrist. 0 if the finger is not curled.
Declaration
public static float PinkyFingerCurl(Handedness handedness)
Parameters
Type | Name | Description |
---|---|---|
Handedness | handedness | Handedness to query joint pose against. |
Returns
Type | Description |
---|---|
Single | Float ranging from 0 to 1. 0 if pinky finger is straight/not curled, 1 if pinky finger is curled |
RingFingerCurl(Handedness)
Returns curl of ring finger ranging from 0 to 1. 1 if ring finger curled/closer to wrist. 0 if the finger is not curled.
Declaration
public static float RingFingerCurl(Handedness handedness)
Parameters
Type | Name | Description |
---|---|---|
Handedness | handedness | Handedness to query joint pose against. |
Returns
Type | Description |
---|---|
Single | Float ranging from 0 to 1. 0 if ring finger is straight/not curled, 1 if ring finger is curled |
ThumbFingerCurl(Handedness)
Returns curl of thumb finger ranging from 0 to 1. 1 if thumb finger curled/closer to wrist. 0 if the finger is not curled.
Declaration
public static float ThumbFingerCurl(Handedness handedness)
Parameters
Type | Name | Description |
---|---|---|
Handedness | handedness | Handedness to query joint pose against. |
Returns
Type | Description |
---|---|
Single | Float ranging from 0 to 1. 0 if thumb finger is straight/not curled, 1 if thumb finger is curled |