Matrix4
Defined in: radiance/src/math/Matrix4.ts:5
A 4x4 matrix, column-major as WebGPU reads one.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Matrix4():
Matrix4
Returns
Section titled “Returns”Matrix4
Properties
Section titled “Properties”elements
Section titled “elements”
readonlyelements:Float64Array
Defined in: radiance/src/math/Matrix4.ts:6
Methods
Section titled “Methods”clone()
Section titled “clone()”clone():
Matrix4
Defined in: radiance/src/math/Matrix4.ts:18
Returns
Section titled “Returns”Matrix4
compose()
Section titled “compose()”compose(
position,rotation,scale):this
Defined in: radiance/src/math/Matrix4.ts:38
Translation, then the rotation (X, then Y, then Z), then the scale, as one matrix.
Parameters
Section titled “Parameters”position
Section titled “position”rotation
Section titled “rotation”Returns
Section titled “Returns”this
copy()
Section titled “copy()”copy(
m):this
Defined in: radiance/src/math/Matrix4.ts:13
Parameters
Section titled “Parameters”Matrix4
Returns
Section titled “Returns”this
equals()
Section titled “equals()”equals(
m):boolean
Defined in: radiance/src/math/Matrix4.ts:78
Parameters
Section titled “Parameters”Matrix4
Returns
Section titled “Returns”boolean
getPosition()
Section titled “getPosition()”getPosition(
target?):Vector3
Defined in: radiance/src/math/Matrix4.ts:74
The translation part.
Parameters
Section titled “Parameters”target?
Section titled “target?”Vector3 = ...
Returns
Section titled “Returns”identity()
Section titled “identity()”identity():
this
Defined in: radiance/src/math/Matrix4.ts:8
Returns
Section titled “Returns”this
maxScale()
Section titled “maxScale()”maxScale():
number
Defined in: radiance/src/math/Matrix4.ts:64
The largest factor by which the matrix stretches any direction’s length, for a radius.
Returns
Section titled “Returns”number
multiplyMatrices()
Section titled “multiplyMatrices()”multiplyMatrices(
a,b):this
Defined in: radiance/src/math/Matrix4.ts:23
this = a * b.
Parameters
Section titled “Parameters”Matrix4
Matrix4
Returns
Section titled “Returns”this