Class LeapUtil

Index

Constructor methods

Properties

Methods

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

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

Returns

Vector3

public static componentWiseMin(vLHS: Vector3, vRHS: Vector3): Vector3

Parameters

Returns

Vector3

public static componentWiseReciprocal(inVector: Vector3): Vector3

Parameters

Returns

Vector3

public static componentWiseScale(vLHS: Vector3, vRHS: Vector3): Vector3

Parameters

Returns

Vector3

public static elevation(inVector: Vector3): number

Parameters

Returns

number

public static extractRotation(mtxTransform: Matrix): Matrix

Parameters

Returns

Matrix

public static heading(inVector: Vector3): number

Parameters

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

Returns

Vector3

public static maxComponent(inVector: Vector3): number

Parameters

Returns

number

public static minComponent(inVector: Vector3): number

Parameters

Returns

number

public static normalizeSpherical(vSpherical: Vector3): Vector3

Parameters

Returns

Vector3

public static rigidInverse(mtxTransform: Matrix): Matrix

Parameters

Returns

Matrix

public static rotationInverse(mtxRot: Matrix): Matrix

Parameters

Returns

Matrix

public static sphericalToCartesian(vSpherical: Vector3): Vector3

Parameters

Returns

Vector3

public static toDegrees(radians: number): number

Parameters

  • radians: number

Returns

number

public static vectorIsNearZero(inVector: Vector3): boolean

Parameters

Returns

boolean