11 using System.Collections.
Generic;
26 public class Hand : IEquatable<Hand> {
67 Vector stabilizedPalmPosition,
108 for (
int i =
Fingers.Count; i-- != 0;) {
131 return string.Format(
134 this.
IsLeft ?
"left" :
"right"
The Arm class represents the forearm.
The Finger class represents a tracked finger.
The Hand class reports the physical characteristics of a detected hand.
override string ToString()
A string containing a brief, human readable description of the Hand object.
Vector WristPosition
The position of the wrist of this hand.
float PalmWidth
The estimated width of the palm when the hand is in a flat position.
Vector Direction
The direction from the palm position toward the fingers.
float PinchStrength
The holding strength of a pinch hand pose.
Hand(long frameID, int id, float confidence, float grabStrength, float grabAngle, float pinchStrength, float pinchDistance, float palmWidth, bool isLeft, float timeVisible, Arm arm, List< Finger > fingers, Vector palmPosition, Vector stabilizedPalmPosition, Vector palmVelocity, Vector palmNormal, LeapQuaternion palmOrientation, Vector direction, Vector wristPosition)
Constructs a hand.
LeapTransform Basis
The transform of the hand.
Vector PalmNormal
The normal vector to the palm. If your hand is flat, this vector will point downward,...
Finger Finger(int id)
The Finger object with the specified ID attached to this hand.
Vector PalmVelocity
The rate of change of the palm position.
bool IsLeft
Identifies whether this Hand is a left hand.
Vector StabilizedPalmPosition
The stabilized palm position of this Hand.
Hand()
Constructs a Hand object.
float TimeVisible
The duration of time this Hand has been visible to the Leap Motion Controller.
Arm Arm
The arm to which this hand is attached.
float PinchDistance
The distance between the thumb and index finger of a pinch hand pose.
Vector PalmPosition
The center position of the palm.
int Id
A unique ID assigned to this Hand object, whose value remains the same across consecutive frames whil...
float Confidence
How confident we are with a given hand pose. The confidence level ranges between 0....
List< Finger > Fingers
The list of Finger objects detected in this frame that are attached to this hand, given in order from...
LeapQuaternion Rotation
The rotation of the hand as a quaternion.
float GrabAngle
The angle between the fingers and the hand of a grab hand pose.
float GrabStrength
The strength of a grab hand pose.
bool Equals(Hand other)
Compare Hand object equality.
bool IsRight
Identifies whether this Hand is a right hand.
The LeapQuaternion struct represents a rotation in three-dimensional space.
The Vector struct represents a three-component mathematical vector or point such as a direction or po...