Skip to content

Matrix4

Defined in: radiance/src/math/Matrix4.ts:5

A 4x4 matrix, column-major as WebGPU reads one.

new Matrix4(): Matrix4

Matrix4

readonly elements: Float64Array

Defined in: radiance/src/math/Matrix4.ts:6

clone(): Matrix4

Defined in: radiance/src/math/Matrix4.ts:18

Matrix4


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.

Vector3

Euler

Vector3

this


copy(m): this

Defined in: radiance/src/math/Matrix4.ts:13

Matrix4

this


equals(m): boolean

Defined in: radiance/src/math/Matrix4.ts:78

Matrix4

boolean


getPosition(target?): Vector3

Defined in: radiance/src/math/Matrix4.ts:74

The translation part.

Vector3 = ...

Vector3


identity(): this

Defined in: radiance/src/math/Matrix4.ts:8

this


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.

number


multiplyMatrices(a, b): this

Defined in: radiance/src/math/Matrix4.ts:23

this = a * b.

Matrix4

Matrix4

this