Class Frame

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(): Frame

Returns

Frame

Properties

public _gestures: Gesture[]

public controller: Controller

public fingers: Finger[]

public hands: Hand[]

public id: number

public pointables: Pointable[]

public rotation: Matrix

public scaleFactorNumber: number

public timestamp: number

public tools: Tool[]

public translationVector: Vector3

Methods

public finger(id: number): Finger

Parameters

  • id: number

Returns

Finger

public gesture(id: number): Gesture

Parameters

  • id: number

Returns

Gesture

public gestures(sinceFrame?: Frame): Gesture[]

Parameters

  • sinceFrame?: Frame optional

Returns

Gesture[]

public hand(id: number): Hand

Parameters

  • id: number

Returns

Hand

public static invalid(): Frame

Returns

Frame

public isEqualTo(other: Frame): boolean

Parameters

Returns

boolean

public isValid(): boolean

Returns

boolean

public pointable(id: number): Pointable

Parameters

  • id: number

Returns

Pointable

public rotationAngle(sinceFrame: Frame, axis?: Vector3): number

Parameters

Returns

number

public rotationAxis(sinceFrame: Frame): Vector3

Parameters

Returns

Vector3

public rotationMatrix(sinceFrame: Frame): Matrix

Parameters

Returns

Matrix

public scaleFactor(sinceFrame: Frame): number

Parameters

Returns

number

public tool(id: number): Tool

Parameters

  • id: number

Returns

Tool

public translation(sinceFrame: Frame): Vector3

Parameters

Returns

Vector3