Home Reference Source
public class | source

Matrix44

Static Method Summary

Static Public Methods
public static

determinant(mat: *): *

public static

identity(): *

to the identity matrix(static版)

public static

invert(mat: *): *

public static

multiply(l_m: *, r_m: *): *

multiply zero matrix and zero matrix(static version)

public static

rotateX(angle: *): *

Create X oriented Rotation Matrix

public static

rotateXYZ(x: *, y: *, z: *): *

public static

rotateY(angle: *): *

Create Y oriented Rotation Matrix

public static

rotateZ(angle: *): *

Create Z oriented Rotation Matrix

public static

scale(vec: *): *

public static

translate(vec: *): *

public static

transpose(mat: *): *

transpose(static version)

public static

zero(): *

Constructor Summary

Public Constructor
public

constructor(m: *, isColumnMajor: *, notCopyFloat32Array: *)

Member Summary

Public Members
public get
public

m: *

public set

m00: *

public get

m00: *

public get

m01: *

public set

m01: *

public set

m02: *

public get

m02: *

public set

m03: *

public get

m03: *

public get

m10: *

public set

m10: *

public set

m11: *

public get

m11: *

public get

m12: *

public set

m12: *

public get

m13: *

public set

m13: *

public get

m20: *

public set

m20: *

public set

m21: *

public get

m21: *

public set

m22: *

public get

m22: *

public get

m23: *

public set

m23: *

public get

m30: *

public set

m30: *

public set

m31: *

public get

m31: *

public get

m32: *

public set

m32: *

public set

m33: *

public get

m33: *

Method Summary

Public Methods
public

addScale(vec: *): *

public

clone(): *

public

copyComponents(mat4: *)

public
public

flatten(): *

public
public

getRotate(): *

public

getScale(): *

public
public

identity(): *

to the identity matrix

public

invert(): *

public

multiply(mat: *): *

multiply zero matrix and zero matrix

public

multiplyByLeft(mat: *): *

public

multiplyVector(vec: *): *

public

nearZeroToZero(value: *): *

public

putTranslate(vec: *)

public

rotateX(angle: *): *

Create X oriented Rotation Matrix

public

rotateY(angle: *): *

Create Y oriented Rotation Matrix

public

rotateZ(angle: *): *

Create Z oriented Rotation Matrix

public

scale(vec: *): *

public

setComponents(m00: *, m01: *, m02: *, m03: *, m10: *, m11: *, m12: *, m13: *, m20: *, m21: *, m22: *, m23: *, m30: *, m31: *, m32: *, m33: *): *

public
public

toString(): *

public
public

translate(vec: *): *

public

transpose(): *

transpose

public

zero(): *

ゼロ行列

Private Methods
private

_swap(l: *, r: *)

Static Public Methods

public static determinant(mat: *): * source

Params:

NameTypeAttributeDescription
mat *

Return:

*

public static identity(): * source

to the identity matrix(static版)

Return:

*

public static invert(mat: *): * source

Params:

NameTypeAttributeDescription
mat *

Return:

*

public static multiply(l_m: *, r_m: *): * source

multiply zero matrix and zero matrix(static version)

Params:

NameTypeAttributeDescription
l_m *
r_m *

Return:

*

public static rotateX(angle: *): * source

Create X oriented Rotation Matrix

Params:

NameTypeAttributeDescription
angle *

Return:

*

public static rotateXYZ(x: *, y: *, z: *): * source

Params:

NameTypeAttributeDescription
x *
y *
z *

Return:

*

public static rotateY(angle: *): * source

Create Y oriented Rotation Matrix

Params:

NameTypeAttributeDescription
angle *

Return:

*

public static rotateZ(angle: *): * source

Create Z oriented Rotation Matrix

Params:

NameTypeAttributeDescription
angle *

Return:

*

public static scale(vec: *): * source

Params:

NameTypeAttributeDescription
vec *

Return:

*

public static translate(vec: *): * source

Params:

NameTypeAttributeDescription
vec *

Return:

*

public static transpose(mat: *): * source

transpose(static version)

Params:

NameTypeAttributeDescription
mat *

Return:

*

public static zero(): * source

Return:

*

Public Constructors

public constructor(m: *, isColumnMajor: *, notCopyFloat32Array: *) source

Params:

NameTypeAttributeDescription
m *
isColumnMajor *
  • optional
  • default: undefined
notCopyFloat32Array *
  • optional
  • default: undefined

Public Members

public get className: * source

public m: * source

public set m00: * source

public get m00: * source

public get m01: * source

public set m01: * source

public set m02: * source

public get m02: * source

public set m03: * source

public get m03: * source

public get m10: * source

public set m10: * source

public set m11: * source

public get m11: * source

public get m12: * source

public set m12: * source

public get m13: * source

public set m13: * source

public get m20: * source

public set m20: * source

public set m21: * source

public get m21: * source

public set m22: * source

public get m22: * source

public get m23: * source

public set m23: * source

public get m30: * source

public set m30: * source

public set m31: * source

public get m31: * source

public get m32: * source

public set m32: * source

public set m33: * source

public get m33: * source

Public Methods

public addScale(vec: *): * source

Params:

NameTypeAttributeDescription
vec *

Return:

*

public clone(): * source

Return:

*

public copyComponents(mat4: *) source

Params:

NameTypeAttributeDescription
mat4 *

public determinant(): * source

Return:

*

public flatten(): * source

Return:

*

public flattenAsArray(): undefined[] source

Return:

undefined[]

public getRotate(): * source

Return:

*

public getScale(): * source

Return:

*

public getTranslate(): * source

Return:

*

public identity(): * source

to the identity matrix

Return:

*

public invert(): * source

Return:

*

public multiply(mat: *): * source

multiply zero matrix and zero matrix

Params:

NameTypeAttributeDescription
mat *

Return:

*

public multiplyByLeft(mat: *): * source

Params:

NameTypeAttributeDescription
mat *

Return:

*

public multiplyVector(vec: *): * source

Params:

NameTypeAttributeDescription
vec *

Return:

*

public nearZeroToZero(value: *): * source

Params:

NameTypeAttributeDescription
value *

Return:

*

public putTranslate(vec: *) source

Params:

NameTypeAttributeDescription
vec *

public rotateX(angle: *): * source

Create X oriented Rotation Matrix

Params:

NameTypeAttributeDescription
angle *

Return:

*

public rotateY(angle: *): * source

Create Y oriented Rotation Matrix

Params:

NameTypeAttributeDescription
angle *

Return:

*

public rotateZ(angle: *): * source

Create Z oriented Rotation Matrix

Params:

NameTypeAttributeDescription
angle *

Return:

*

public scale(vec: *): * source

Params:

NameTypeAttributeDescription
vec *

Return:

*

public setComponents(m00: *, m01: *, m02: *, m03: *, m10: *, m11: *, m12: *, m13: *, m20: *, m21: *, m22: *, m23: *, m30: *, m31: *, m32: *, m33: *): * source

Params:

NameTypeAttributeDescription
m00 *
m01 *
m02 *
m03 *
m10 *
m11 *
m12 *
m13 *
m20 *
m21 *
m22 *
m23 *
m30 *
m31 *
m32 *
m33 *

Return:

*

public toEulerAngles(): * source

Return:

*

Euler Angles Rotation (x, y, z)

public toString(): * source

Return:

*

public toStringApproximately(): * source

Return:

*

public translate(vec: *): * source

Params:

NameTypeAttributeDescription
vec *

Return:

*

public transpose(): * source

transpose

Return:

*

public zero(): * source

ゼロ行列

Return:

*

Private Methods

private _swap(l: *, r: *) source

Params:

NameTypeAttributeDescription
l *
r *