Home Reference Source
public class | source

MathClassUtil

Static Method Summary

Static Public Methods
public static

arrayToQuaternion(element: *): *

public static

arrayToVector(element: *): *

public static

arrayToVectorOrMatrix(element: *): *

public static

cloneOfMathObjects(element: *): *

public static

discriminate which Vector instance

public static

makeSubArray(array: *, componentN: *): *

public static

packNormalizedVec4ToVec2(x: *, y: *, z: *, w: *, criteria: *): undefined[]

public static

unProject(windowPosVec3: *, inversePVMat44: *, viewportVec4: *, zNear: *, zFar: *): *

public static

vectorToArray(element: *): *

Constructor Summary

Public Constructor
public

Static Public Methods

public static arrayToQuaternion(element: *): * source

Params:

NameTypeAttributeDescription
element *

Return:

*

public static arrayToVector(element: *): * source

Params:

NameTypeAttributeDescription
element *

Return:

*

public static arrayToVectorOrMatrix(element: *): * source

Params:

NameTypeAttributeDescription
element *

Return:

*

public static cloneOfMathObjects(element: *): * source

Params:

NameTypeAttributeDescription
element *

Return:

*

public static compomentNumberOfVector(element: Vector2 | Vector3 | Vector4 | Quaternion | Array): number source

discriminate which Vector instance

Params:

NameTypeAttributeDescription
element Vector2 | Vector3 | Vector4 | Quaternion | Array

any Vector instance

Return:

number

number of Vector instance

public static makeSubArray(array: *, componentN: *): * source

Params:

NameTypeAttributeDescription
array *
componentN *

Return:

*

public static packNormalizedVec4ToVec2(x: *, y: *, z: *, w: *, criteria: *): undefined[] source

Params:

NameTypeAttributeDescription
x *
y *
z *
w *
criteria *

Return:

undefined[]

public static unProject(windowPosVec3: *, inversePVMat44: *, viewportVec4: *, zNear: *, zFar: *): * source

Params:

NameTypeAttributeDescription
windowPosVec3 *
inversePVMat44 *
viewportVec4 *
zNear *
zFar *

Return:

*

public static vectorToArray(element: *): * source

Params:

NameTypeAttributeDescription
element *

Return:

*

Public Constructors

public constructor() source