Hand

class Fingo::Hand

Hand data, including position and rotation of joints, gesture state, palm position and rotation, fingers, and bones.

Public Functions

Hand()

Create an empty hand data.

Hand(HandRawData rawHand)

Create a hand data by hand raw data.

Parameters
  • rawHand: The hand raw data used to create the hand.

Hand Copy()

Get a copy of the hand data.

Return
The copy of the hand data.

bool IsDetected()

Get the hand is detected or not.

Return
The hand is detected or not.

HandType GetHandType()

Get the hand type of the hand. Left, right or invalid.

Return
The hand type of the hand. Left, right or invalid.

Finger GetFinger(FingerIndex index)

Get finger of the finger index.

Return
The finger of the finger index.
Parameters
  • index: The finger index of the finger.

Bone GetBone(FingerIndex fingerIndex, BoneIndex boneIndex)

Get bone of the bone index on finger of finger index.

Return
Bone of the bone index on finger of finger index.
Parameters
  • fingerIndex: The finger index of the bone.
  • boneIndex: The bone index of the bone.

List<Gesture> GetGestures()

Get the list of gestures.

Return
The list of gestures.

GestureName GetGestureName()

Get the gesture name of the hand.

Return
The gesture name of the hand.

float GetGestureConfidence()

Get the gesture confidence of the hand.

Return
The gesture confidence of the hand.

Vector3 GetJointPosition(JointIndex index)

Get joint position of joint index related to Fingo device.

Return
Joint position of joint index related to Fingo device.
Parameters
  • index: The joint index of the joint.

Quaternion GetJointLocalRotation(JointIndex index)

Get joint rotation of joint index related to previous joint.

Return
Joint rotation of joint index related to previous joint.
Parameters
  • index: The joint index of the joint.

Quaternion GetJointRotation(JointIndex index)

Get joint rotation of joint index related to Fingo device.

Return
Joint rotation of joint index related to Fingo device.
Parameters
  • index: The joint index of the joint.

Vector3 GetTipPosition(TipIndex index)

Get finger tip position of joint index related to Fingo device.

Return
Joint position of finger tip index related to Fingo device.
Parameters
  • index: The finger tip index of the joint.

Quaternion GetTipLocalRotation(TipIndex index)

Get finger tip rotation of joint index related to previous joint.

Return
Joint rotation of finger tip index related to previous joint.
Parameters
  • index: The finger tip index of the joint.

Quaternion GetTipRotation(TipIndex index)

Get finger tip rotation of joint index related to Fingo device.

Return
Joint rotation of finger tip index related to Fingo device.
Parameters
  • index: The finger tip index of the joint.

Vector3 GetPalmPosition()

Get palm position related to Fingo device.

Return
Palm position related to Fingo device.

Vector3 GetPalmUpDirection()

Get palm up direction of joint index related to Fingo device.

Return
Palm up direction of joint index related to Fingo device.

Vector3 GetPalmNormal()

Get palm normal direction of joint index related to Fingo device.

Return
Palm normal direction of joint index related to Fingo device.

Vector3 GetWristPosition()

Get wrist position of joint index related to Fingo device.

Return
Wrist position of joint index related to Fingo device.

Quaternion GetWristRotation()

Get wrist rotation of joint index related to Fingo device.

Return
Wrist rotation of joint index related to Fingo device.

enum Fingo::HandType

Hand type, left right or invalid

Values:

Left

Left hand.

Right

Right hand.

Invalid

Invalid hand.