Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
LeapMotionTS.d
LeapUtil
Class LeapUtil
Index
Constructor methods
constructor
Properties
DEG_TO_RAD
EPSILON
HALF_PI
PI
RAD_TO_DEG
TWO_PI
Methods
cartesianToSpherical
clamp
componentWiseMax
componentWiseMin
componentWiseReciprocal
componentWiseScale
elevation
extractRotation
heading
isNearZero
lerp
lerpVector
maxComponent
minComponent
normalizeSpherical
rigidInverse
rotationInverse
sphericalToCartesian
toDegrees
vectorIsNearZero
Constructor methods
constructor
(
)
:
LeapUtil
Returns
LeapUtil
Properties
public
static
DEG_TO_RAD
:
number
public
static
EPSILON
:
number
public
static
HALF_PI
:
number
public
static
PI
:
number
public
static
RAD_TO_DEG
:
number
public
static
TWO_PI
:
number
Methods
public
static
cartesianToSpherical
(
vCartesian
:
Vector3
)
:
Vector3
Parameters
vCartesian:
Vector3
Returns
Vector3
public
static
clamp
(
inVal
:
number
, minVal
:
number
, maxVal
:
number
)
:
number
Parameters
inVal:
number
minVal:
number
maxVal:
number
Returns
number
public
static
componentWiseMax
(
vLHS
:
Vector3
, vRHS
:
Vector3
)
:
Vector3
Parameters
vLHS:
Vector3
vRHS:
Vector3
Returns
Vector3
public
static
componentWiseMin
(
vLHS
:
Vector3
, vRHS
:
Vector3
)
:
Vector3
Parameters
vLHS:
Vector3
vRHS:
Vector3
Returns
Vector3
public
static
componentWiseReciprocal
(
inVector
:
Vector3
)
:
Vector3
Parameters
inVector:
Vector3
Returns
Vector3
public
static
componentWiseScale
(
vLHS
:
Vector3
, vRHS
:
Vector3
)
:
Vector3
Parameters
vLHS:
Vector3
vRHS:
Vector3
Returns
Vector3
public
static
elevation
(
inVector
:
Vector3
)
:
number
Parameters
inVector:
Vector3
Returns
number
public
static
extractRotation
(
mtxTransform
:
Matrix
)
:
Matrix
Parameters
mtxTransform:
Matrix
Returns
Matrix
public
static
heading
(
inVector
:
Vector3
)
:
number
Parameters
inVector:
Vector3
Returns
number
public
static
isNearZero
(
value
:
number
)
:
boolean
Parameters
value:
number
Returns
boolean
public
static
lerp
(
a
:
number
, b
:
number
, coefficient
:
number
)
:
number
Parameters
a:
number
b:
number
coefficient:
number
Returns
number
public
static
lerpVector
(
vec1
:
Vector3
, vec2
:
Vector3
, coefficient
:
number
)
:
Vector3
Parameters
vec1:
Vector3
vec2:
Vector3
coefficient:
number
Returns
Vector3
public
static
maxComponent
(
inVector
:
Vector3
)
:
number
Parameters
inVector:
Vector3
Returns
number
public
static
minComponent
(
inVector
:
Vector3
)
:
number
Parameters
inVector:
Vector3
Returns
number
public
static
normalizeSpherical
(
vSpherical
:
Vector3
)
:
Vector3
Parameters
vSpherical:
Vector3
Returns
Vector3
public
static
rigidInverse
(
mtxTransform
:
Matrix
)
:
Matrix
Parameters
mtxTransform:
Matrix
Returns
Matrix
public
static
rotationInverse
(
mtxRot
:
Matrix
)
:
Matrix
Parameters
mtxRot:
Matrix
Returns
Matrix
public
static
sphericalToCartesian
(
vSpherical
:
Vector3
)
:
Vector3
Parameters
vSpherical:
Vector3
Returns
Vector3
public
static
toDegrees
(
radians
:
number
)
:
number
Parameters
radians:
number
Returns
number
public
static
vectorIsNearZero
(
inVector
:
Vector3
)
:
boolean
Parameters
inVector:
Vector3
Returns
boolean
Globals
LeapMotionTS.d
Listener
CircleGesture
Controller
DefaultListener
EventDispatcher
Finger
Frame
Gesture
Hand
KeyTapGesture
LeapEvent
LeapUtil
constructor
DEG_TO_RAD
EPSILON
HALF_PI
PI
RAD_TO_DEG
TWO_PI
cartesianToSpherical
clamp
componentWiseMax
componentWiseMin
componentWiseReciprocal
componentWiseScale
elevation
extractRotation
heading
isNearZero
lerp
lerpVector
maxComponent
minComponent
normalizeSpherical
rigidInverse
rotationInverse
sphericalToCartesian
toDegrees
vectorIsNearZero
Matrix
Pointable
ScreenTapGesture
SwipeGesture
Tool
Vector3