Matrix4
Static Method Summary
Static Public Methods | ||
public static |
fromJSON(): * |
Constructor Summary
Public Constructor | ||
public |
|
Method Summary
Public Methods | ||
public |
addToHashDigest(hash: *): * |
|
public |
alignAxis(axis: *, vec: *): * |
|
public |
clearTranslation(set_w_to_one: boolean): * |
|
public |
clone(): * |
|
public |
copy(): * |
|
public |
copyColumn(i: *): * |
|
public |
copyColumnTo(i: *, vec: *): * |
|
public |
|
|
public |
determinant(): * |
|
public |
determinant(): * |
|
public |
divide(divisor: *): * |
|
public |
equals(m: *): * |
|
public |
euler_rotate(x: *, y: *, z: *): * |
|
public |
euler_rotate_order(x: *, y: *, z: *, order: *): * |
|
public |
frustum(left: *, right: *, bottom: *, top: *, near: *, far: *): * |
|
public |
getAsArray(): undefined[] |
|
public |
getAsFloat32Array(): * |
|
public |
invert(): * |
|
public |
load(): * |
|
public |
loadColumn(i: *, vec: *): * |
|
public |
loadSTRUCT(reader: *) |
|
public |
lookat(pos: *, target: *, up: *): * |
|
public |
makeIdentity(): * |
|
public |
makeNormalMatrix(normal: *, up: *): * |
|
public |
makeRotationOnly(): * |
|
public |
multiply(mat: *): * |
|
public |
normalize(): * |
|
public |
ortho(left: *, right: *, bottom: *, top: *, near: *, far: *): * |
|
public |
orthographic(scale: *, aspect: *, near: *, far: *): * |
|
public |
perspective(fovy: *, aspect: *, zNear: *, zFar: *): * |
|
public |
preMultiply(mat: *): * |
|
public |
|
|
public |
preTranslate(x: *, y: *, z: *): * |
|
public |
rotate(angle: *, x: *, y: *, z: *): * |
|
public |
|
|
public |
setTranslation(x: *, y: *, z: *, resetW: boolean): * |
|
public |
setUniform(ctx: *, loc: *, transpose: *): * |
|
public |
toJSON(): {"isPersp": *, "items": *} |
|
public |
toString(): * |
|
public |
translate(x: *, y: *, z: *): * |
|
public |
transpose(): * |
Private Methods | ||
private |
_determinant2x2(a: *, b: *, c: *, d: *): * |
|
private |
_determinant3x3(a1: *, a2: *, a3: *, b1: *, b2: *, b3: *, c1: *, c2: *, c3: *): * |
|
private |
_determinant4x4(): * |
|
private |
|
Static Public Methods
Public Constructors
public constructor() source
Public Methods
public alignAxis(axis: *, vec: *): * source
Params:
Name | Type | Attribute | Description |
axis | * | ||
vec | * |
Return:
* |
public clearTranslation(set_w_to_one: boolean): * source
Params:
Name | Type | Attribute | Description |
set_w_to_one | boolean |
|
Return:
* |
public copyColumnTo(i: *, vec: *): * source
Params:
Name | Type | Attribute | Description |
i | * | ||
vec | * |
Return:
* |
public decompose(_translate: *, _rotate: *, _scale: *, _skew: *, _perspective: *, order: *): boolean source
Params:
Name | Type | Attribute | Description |
_translate | * | ||
_rotate | * | ||
_scale | * | ||
_skew | * | ||
_perspective | * | ||
order | * |
|
public euler_rotate(x: *, y: *, z: *): * source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * | ||
z | * |
Return:
* |
public euler_rotate_order(x: *, y: *, z: *, order: *): * source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * | ||
z | * | ||
order | * |
|
Return:
* |
public frustum(left: *, right: *, bottom: *, top: *, near: *, far: *): * source
Params:
Name | Type | Attribute | Description |
left | * | ||
right | * | ||
bottom | * | ||
top | * | ||
near | * | ||
far | * |
Return:
* |
public loadSTRUCT(reader: *) source
Params:
Name | Type | Attribute | Description |
reader | * |
public lookat(pos: *, target: *, up: *): * source
Params:
Name | Type | Attribute | Description |
pos | * | ||
target | * | ||
up | * |
Return:
* |
public makeNormalMatrix(normal: *, up: *): * source
Params:
Name | Type | Attribute | Description |
normal | * | ||
up | * |
|
Return:
* |
public ortho(left: *, right: *, bottom: *, top: *, near: *, far: *): * source
Params:
Name | Type | Attribute | Description |
left | * | ||
right | * | ||
bottom | * | ||
top | * | ||
near | * | ||
far | * |
Return:
* |
public orthographic(scale: *, aspect: *, near: *, far: *): * source
Params:
Name | Type | Attribute | Description |
scale | * | ||
aspect | * | ||
near | * | ||
far | * |
Return:
* |
public perspective(fovy: *, aspect: *, zNear: *, zFar: *): * source
Params:
Name | Type | Attribute | Description |
fovy | * | ||
aspect | * | ||
zNear | * | ||
zFar | * |
Return:
* |
public preScale(x: *, y: *, z: *, w: number): * source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * | ||
z | * | ||
w | number |
|
Return:
* |
public preTranslate(x: *, y: *, z: *): * source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * | ||
z | * |
Return:
* |
public rotate(angle: *, x: *, y: *, z: *): * source
Params:
Name | Type | Attribute | Description |
angle | * | ||
x | * | ||
y | * | ||
z | * |
Return:
* |
public scale(x: *, y: *, z: *, w: number): * source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * | ||
z | * | ||
w | number |
|
Return:
* |
public setTranslation(x: *, y: *, z: *, resetW: boolean): * source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * | ||
z | * | ||
resetW | boolean |
|
Return:
* |
public setUniform(ctx: *, loc: *, transpose: *): * source
Params:
Name | Type | Attribute | Description |
ctx | * | ||
loc | * | ||
transpose | * |
Return:
* |
public translate(x: *, y: *, z: *): * source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * | ||
z | * |
Return:
* |
Private Methods
private _determinant2x2(a: *, b: *, c: *, d: *): * source
Params:
Name | Type | Attribute | Description |
a | * | ||
b | * | ||
c | * | ||
d | * |
Return:
* |
private _determinant3x3(a1: *, a2: *, a3: *, b1: *, b2: *, b3: *, c1: *, c2: *, c3: *): * source
Params:
Name | Type | Attribute | Description |
a1 | * | ||
a2 | * | ||
a3 | * | ||
b1 | * | ||
b2 | * | ||
b3 | * | ||
c1 | * | ||
c2 | * | ||
c3 | * |
Return:
* |