![]() |
Leap Motion Java API Reference
0.8.0
|
The HandList class represents a list of Hand objects. More...
Inherits com.leapmotion.leap.Interface, and Iterable< Hand >.
Public Member Functions | |
HandList | append (HandList other) |
Appends the members of the specifed HandList to this HandList. | |
int | count () |
Returns the number of hands in this list. | |
boolean | empty () |
Deprecated. | |
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 | get (int index) |
Access a list member by its position in the list. | |
HandList () | |
Constructs an empty list of hands. | |
boolean | isEmpty () |
Reports whether the list is empty. | |
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). | |
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). | |
The HandList class represents a list of Hand objects.
Get a HandList object by calling Frame::hands().
com.leapmotion.leap.HandList.HandList | ( | ) |
Constructs an empty list of hands.
int com.leapmotion.leap.HandList.count | ( | ) |
Returns the number of hands in this list.
boolean com.leapmotion.leap.HandList.empty | ( | ) |
Hand com.leapmotion.leap.HandList.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 com.leapmotion.leap.HandList.get | ( | int | index | ) |
Access a list member by its position in the list.
index | The zero-based list position index. |
boolean com.leapmotion.leap.HandList.isEmpty | ( | ) |
Reports whether the list is empty.
Hand com.leapmotion.leap.HandList.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).
Hand com.leapmotion.leap.HandList.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).