![]() |
Leap Motion C# API Reference
0.8.0
|
The Device class represents a physically connected device. More...
Inherits Leap.Interface.
Public Member Functions | |
Device () | |
Constructs a Device object. | |
float | DistanceToBoundary (Vector position) |
The distance to the nearest edge of the Leap Motion controller's view volume. | |
bool | Equals (Device arg0) |
Compare Device object equality. | |
override string | ToString () |
A string containing a brief, human readable description of the Device object. | |
Properties | |
float | HorizontalViewAngle [get] |
The angle of view along the x axis of this device. | |
static Device | Invalid [get] |
Returns an invalid Device object. | |
bool | IsValid [get] |
Reports whether this is a valid Device object. | |
float | Range [get] |
The maximum reliable tracking range. | |
float | VerticalViewAngle [get] |
The angle of view along the z axis of this device. | |
The Device class represents a physically connected device.
The Device class contains information related to a particular connected device such as field of view, device id, and calibrated positions.
Note that Device objects can be invalid, which means that they do not contain valid device information and do not correspond to a physical device. Test for validity with the Device::isValid() function.
|
inline |
Constructs a Device object.
An uninitialized device is considered invalid. Get valid Device objects from a DeviceList object obtained using the Controller::devices() method.
|
inline |
The distance to the nearest edge of the Leap Motion controller's view volume.
The view volume is an axis-aligned, inverted pyramid centered on the device origin and extending upward to the range limit. The walls of the pyramid are described by the horizontalViewAngle and verticalViewAngle and the roof by the range. This function estimates the distance between the specified input position and the nearest wall or roof of the view volume.
position | The point to use for the distance calculation. |
|
inline |
|
inline |
|
get |
The angle of view along the x axis of this device.
The Leap Motion controller scans a region in the shape of an inverted pyramid centered at the device's center and extending upwards. The horizontalViewAngle reports the view angle along the long dimension of the device.
|
staticget |
|
get |
|
get |
The maximum reliable tracking range.
The range reports the maximum recommended distance from the device center for which tracking is expected to be reliable. This distance is not a hard limit. Tracking may be still be functional above this distance or begin to degrade slightly before this distance depending on calibration and extreme environmental conditions.
|
get |
The angle of view along the z axis of this device.
The Leap Motion controller scans a region in the shape of an inverted pyramid centered at the device's center and extending upwards. The verticalViewAngle reports the view angle along the short dimension of the device.