Home Reference Source
public class | source

Matrix33

Static Method Summary

Static Public Methods
public static

determinant(mat: *): *

public static

identity(): *

Make this identity matrix(static method version)

public static

invert(mat: *): *

public static

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

multiply zero matrix and zero matrix(static version)

public static

rotate(vec3: *): *

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

transpose(mat: *): *

transpose(static version)

public static

zero(): *

zero matrix(static version)

Constructor Summary

Public Constructor
public

constructor(m: *, isColumnMajor: *, shaderParameterType: *, shaderParameterEntityIndex: *, shaderParameterName: *)

Member Summary

Public Members
public get
public

m: *

public set

m00: *

public get

m00: *

public set

m01: *

public get

m01: *

public get

m02: *

public set

m02: *

public set

m10: *

public get

m10: *

public set

m11: *

public get

m11: *

public set

m12: *

public get

m12: *

public get

m20: *

public set

m20: *

public set

m21: *

public get

m21: *

public set

m22: *

public get

m22: *

Method Summary

Public Methods
public

addScale(vec: *): *

public

clone(): *

public
public

flatten(): *

public
public

getScale(): *

public

identity(): *

public

invert(): *

public

multiply(mat: *): *

multiply zero matrix and zero matrix

public

multiplyVector(vec: *): *

public

nearZeroToZero(value: *): *

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: *, m10: *, m11: *, m12: *, m20: *, m21: *, m22: *): *

public

toString(): *

public
public

transpose(): *

transpose

public

zero(): *

zero matrix

Private Methods
private

_swap(l: *, r: *)

Static Public Methods

public static determinant(mat: *): * source

Params:

NameTypeAttributeDescription
mat *

Return:

*

public static identity(): * source

Make this identity matrix(static method version)

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 rotate(vec3: *): * source

Params:

NameTypeAttributeDescription
vec3 *

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 transpose(mat: *): * source

transpose(static version)

Params:

NameTypeAttributeDescription
mat *

Return:

*

public static zero(): * source

zero matrix(static version)

Return:

*

Public Constructors

public constructor(m: *, isColumnMajor: *, shaderParameterType: *, shaderParameterEntityIndex: *, shaderParameterName: *) source

Params:

NameTypeAttributeDescription
m *
isColumnMajor *
  • optional
  • default: undefined
shaderParameterType *
  • optional
  • default: undefined
shaderParameterEntityIndex *
  • optional
  • default: undefined
shaderParameterName *
  • optional
  • default: undefined

Public Members

public get className: * source

public m: * source

public set m00: * source

public get m00: * source

public set m01: * source

public get m01: * source

public get m02: * source

public set m02: * source

public set m10: * source

public get m10: * source

public set m11: * source

public get m11: * source

public set m12: * source

public get m12: * 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 Methods

public addScale(vec: *): * source

Params:

NameTypeAttributeDescription
vec *

Return:

*

public clone(): * source

Return:

*

public determinant(): * source

Return:

*

public flatten(): * source

Return:

*

public flattenAsArray(): undefined[] source

Return:

undefined[]

public getScale(): * source

Return:

*

public identity(): * source

Return:

*

public invert(): * source

Return:

*

public multiply(mat: *): * source

multiply zero matrix and zero matrix

Params:

NameTypeAttributeDescription
mat *

Return:

*

public multiplyVector(vec: *): * source

Params:

NameTypeAttributeDescription
vec *

Return:

*

public nearZeroToZero(value: *): * source

Params:

NameTypeAttributeDescription
value *

Return:

*

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: *, m10: *, m11: *, m12: *, m20: *, m21: *, m22: *): * source

Params:

NameTypeAttributeDescription
m00 *
m01 *
m02 *
m10 *
m11 *
m12 *
m20 *
m21 *
m22 *

Return:

*

public toString(): * source

Return:

*

public toStringApproximately(): * source

Return:

*

public transpose(): * source

transpose

Return:

*

public zero(): * source

zero matrix

Return:

*

Private Methods

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

Params:

NameTypeAttributeDescription
l *
r *