de.voidplus.leapmotion
Class SwipeGesture

java.lang.Object
  extended by de.voidplus.leapmotion.Gesture
      extended by de.voidplus.leapmotion.SwipeGesture

public class SwipeGesture
extends Gesture


Constructor Summary
SwipeGesture(PApplet parent, LeapMotion leap, com.leapmotion.leap.Gesture gesture)
           
 
Method Summary
 PVector getDirection()
          The unit direction vector parallel to the swipe motion.
 Finger getFinger()
          The finger performing the swipe gesture.
 PVector getPosition()
          The current position of the swipe.
 PVector getRawDirection()
          Raw data of the unit direction vector parallel to the swipe motion.
 PVector getRawPosition()
          Raw data of the current position of the swipe.
 PVector getRawStartPosition()
          Raw data of the position where the swipe began.
 float getSpeed()
          The swipe speed in mm/second.
 PVector getStartPosition()
          The position where the swipe began.
 
Methods inherited from class de.voidplus.leapmotion.Gesture
countHands, getDuration, getDurationInSeconds, getHands, getId, hasHands
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwipeGesture

public SwipeGesture(PApplet parent,
                    LeapMotion leap,
                    com.leapmotion.leap.Gesture gesture)
Method Detail

getPosition

public PVector getPosition()
The current position of the swipe.

Returns:

getRawPosition

public PVector getRawPosition()
Raw data of the current position of the swipe.

Returns:

getStartPosition

public PVector getStartPosition()
The position where the swipe began.

Returns:

getRawStartPosition

public PVector getRawStartPosition()
Raw data of the position where the swipe began.

Returns:

getDirection

public PVector getDirection()
The unit direction vector parallel to the swipe motion.

Returns:

getRawDirection

public PVector getRawDirection()
Raw data of the unit direction vector parallel to the swipe motion.

Returns:

getSpeed

public float getSpeed()
The swipe speed in mm/second.

Returns:

getFinger

public Finger getFinger()
The finger performing the swipe gesture.

Returns:


Processing library LeapMotionForProcessing by Darius Morawiec. (C) 2013