ToolΒΆ

Properties:

Methods:

class Leap::Tool

The Tool class represents a tracked tool.

https://di4564baj7skl.cloudfront.net/documentation/v2/images/Leap_Tool.png

Public Functions

Tool()

Constructs a Tool object.

Tool frontTool = frame.Tools.Frontmost;

Tool(Pointable arg0)

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

if (pointable.IsTool) {
    Tool toolFromPointable = new Tool (pointable);
}

override string ToString()

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

Return
A description of the Tool object as a string.

Property

new Tool Invalid

Returns an invalid Tool object.

if (aTool != Tool.Invalid) {
    //Handle valid tool data
}

Return
The invalid Tool instance.