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