de.voidplus.leapmotion
Class Device

java.lang.Object
  extended by de.voidplus.leapmotion.Device

public class Device
extends Object


Constructor Summary
Device(PApplet parent, LeapMotion leap, com.leapmotion.leap.Device device)
           
 
Method Summary
 float getHorizontalViewAngle()
          The angle of view along the x axis of this device.
 float getRange()
          The maximum reliable tracking range.
 float getVerticalViewAngle()
          The angle of view along the z axis of this device.
 String toString()
          A string containing a brief, human readable description of the Device object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Device

public Device(PApplet parent,
              LeapMotion leap,
              com.leapmotion.leap.Device device)
Method Detail

getHorizontalViewAngle

public float getHorizontalViewAngle()
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.

Returns:
The horizontal angle of view in radians.

getVerticalViewAngle

public float getVerticalViewAngle()
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.

Returns:
The vertical angle of view in radians.

getRange

public float getRange()
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.

Returns:
The recommended maximum range of the device in mm.

toString

public String toString()
A string containing a brief, human readable description of the Device object.

Overrides:
toString in class Object


Processing library LeapMotionForProcessing by Darius Morawiec. (C) 2013