Leap Motion C# API Reference  0.8.0
Leap.Finger Class Reference

The Finger class represents a tracked finger. More...

Inherits Leap.Pointable.

Public Member Functions

 Finger ()
 Constructs a Finger object.
 
 Finger (Pointable arg0)
 If the specified Pointable object represents a finger, creates a copy of it as a Finger object; otherwise, creates an invalid Finger object.
 
override string ToString ()
 A string containing a brief, human readable description of the Finger object.
 
- Public Member Functions inherited from Leap.Pointable
bool Equals (Pointable arg0)
 Compare Pointable object equality.
 
 Pointable ()
 Constructs a Pointable object.
 
override string ToString ()
 A string containing a brief, human readable description of the Pointable object.
 

Properties

static new Finger Invalid [get]
 Returns an invalid Finger object.
 
- Properties inherited from Leap.Pointable
Vector Direction [get]
 The direction in which this finger or tool is pointing.
 
Frame Frame [get]
 The Frame associated with this Pointable object.
 
Hand Hand [get]
 The Hand associated with this finger or tool.
 
int Id [get]
 A unique ID assigned to this Pointable object, whose value remains the same across consecutive frames while the tracked finger or tool remains visible.
 
static Pointable Invalid [get]
 Returns an invalid Pointable object.
 
bool IsFinger [get]
 Whether or not the Pointable is believed to be a finger.
 
bool IsTool [get]
 Whether or not the Pointable is believed to be a tool.
 
bool IsValid [get]
 Reports whether this is a valid Pointable object.
 
float Length [get]
 The estimated length of the finger or tool in millimeters.
 
Vector StabilizedTipPosition [get]
 The stabilized tip position of this Pointable.
 
Vector TipPosition [get]
 The tip position in millimeters from the Leap Motion origin.
 
Vector TipVelocity [get]
 The rate of change of the tip position in millimeters/second.
 
float TouchDistance [get]
 A value proportional to the distance between this Pointable object and the adaptive touch plane.
 
Pointable.Zone TouchZone [get]
 The current touch zone of this Pointable object.
 
float Width [get]
 The estimated width of the finger or tool in millimeters.
 

Additional Inherited Members

- Public Types inherited from Leap.Pointable
enum  Zone { ZONENONE = 0, ZONEHOVERING = 1, ZONETOUCHING = 2 }
 Defines the values for reporting the state of a Pointable object in relation to an adaptive touch plane. More...
 

Detailed Description

The Finger class represents a tracked finger.

Fingers are Pointable objects that the Leap Motion software has classified as a finger. Get valid Finger objects from a Frame or a Hand object.

Note that Finger objects can be invalid, which means that they do not contain valid tracking data and do not correspond to a physical finger. Invalid Finger objects can be the result of asking for a Finger object using an ID from an earlier frame when no Finger objects with that ID exist in the current frame. A Finger object created from the Finger constructor is also invalid. Test for validity with the Finger::isValid() function.

Constructor & Destructor Documentation

Leap.Finger.Finger ( )
inline

Constructs a Finger object.

An uninitialized finger is considered invalid. Get valid Finger objects from a Frame or a Hand object.

Leap.Finger.Finger ( Pointable  arg0)
inline

If the specified Pointable object represents a finger, creates a copy of it as a Finger object; otherwise, creates an invalid Finger object.

Member Function Documentation

override string Leap.Finger.ToString ( )
inline

A string containing a brief, human readable description of the Finger object.

Returns
A description of the Finger object as a string.

Property Documentation

new Finger Leap.Finger.Invalid
staticget

Returns an invalid Finger object.

You can use the instance returned by this function in comparisons testing whether a given Finger instance is valid or invalid. (You can also use the Finger::isValid() function.)

Returns
The invalid Finger instance.