Properties:
Methods:
The HandList class represents a list of Hand objects.
Get a HandList object by calling Frame::hands().
HandList allHands = frame.Hands;Public Functions
- Since
- 1.0
Propertyint Count
Returns the number of hands in this list.
if (frame.Hands.Count > 0) { //Process hand data... }
- Return
- The number of hands in this list.
- Since
- 1.0
Hand Frontmost
The member of the list that is farthest to the front within the standard Leap Motion frame of reference (i.e has the smallest Z coordinate).
Hand frontHand = frame.Hands.Frontmost;
- Return
- The frontmost hand, or invalid if list is empty.
- Since
- 1.0
bool IsEmpty
Reports whether the list is empty.
if (!frame.Hands.IsEmpty) { //Process hands... }
- Return
- True, if the list has no members.
- Since
- 1.0
Hand Leftmost
The member of the list that is farthest to the left within the standard Leap Motion frame of reference (i.e has the smallest X coordinate).
Note: to determine whether a hand is the left hand, use the Hand::isLeft() function.
Hand furthestLeft = frame.Hands.Leftmost;
- Return
- The leftmost hand, or invalid if list is empty.
- Since
- 1.0
Hand Rightmost
The member of the list that is farthest to the right within the standard Leap Motion frame of reference (i.e has the largest X coordinate).
Note: to determine whether a hand is the right hand, use the Hand::isRight() function.
Hand furthestRight = frame.Hands.Rightmost;
- Return
- The rightmost hand, or invalid if list is empty.
- Since
- 1.0