Packagecom.gestureworks.managers
Classpublic class LeapManager
InheritanceLeapManager Inheritance flash.display.Sprite
Subclasses Leap2DManager

...



Public Properties
 PropertyDefined By
  leap : LeapMotion
LeapManager
Protected Properties
 PropertyDefined By
  debug : Boolean = false
LeapManager
Public Methods
 MethodDefined By
  
LeapManager
  
map(num:Number, min1:Number, max1:Number, min2:Number, max2:Number, round:Boolean = false, constrainMin:Boolean = true, constrainMax:Boolean = true):Number
[static] Linearly maps an incoming value from one range to another
LeapManager
  
onConnect(event:LeapEvent):void
LeapManager
  
onDisconnect(event:LeapEvent):void
LeapManager
  
onExit(event:LeapEvent):void
LeapManager
  
onInit(event:LeapEvent):void
LeapManager
Protected Methods
 MethodDefined By
  
onFrame(event:LeapEvent):void
LeapManager
Property Detail
debugproperty
protected var debug:Boolean = false

leapproperty 
public var leap:LeapMotion

Constructor Detail
LeapManager()Constructor
public function LeapManager()



Method Detail
map()method
public static function map(num:Number, min1:Number, max1:Number, min2:Number, max2:Number, round:Boolean = false, constrainMin:Boolean = true, constrainMax:Boolean = true):Number

Linearly maps an incoming value from one range to another

Parameters

num:Number — Incoming value to be mapped
 
min1:Number — Incoming minimum range value
 
max1:Number — Incoming maximum range value
 
min2:Number — Outgoing minimum range value
 
max2:Number — Outgoing maximum range value
 
round:Boolean (default = false) — Whether the returned value is rounded to nearest integer
 
constrainMin:Boolean (default = true) — Whether the returned value is constrained to the minumim value
 
constrainMax:Boolean (default = true) — Whether the returned value is constrained to the maximum value

Returns
Number — Mapped value
onConnect()method 
public function onConnect(event:LeapEvent):void

Parameters

event:LeapEvent

onDisconnect()method 
public function onDisconnect(event:LeapEvent):void

Parameters

event:LeapEvent

onExit()method 
public function onExit(event:LeapEvent):void

Parameters

event:LeapEvent

onFrame()method 
protected function onFrame(event:LeapEvent):void

Parameters

event:LeapEvent

onInit()method 
public function onInit(event:LeapEvent):void

Parameters

event:LeapEvent