Skip to main content

Interface: Mat4

A 4x4 column-major matrix.

Properties​

data​

readonly data: number[]

Defined in​

src/types/TransformManager.ts:11


scale​

readonly scale: Float3

Defined in​

src/types/TransformManager.ts:12


translation​

readonly translation: Float3

Defined in​

src/types/TransformManager.ts:13

Methods​

rotate()​

rotate(angleRadians, axis): Mat4

Returns a new matrix that is the result of multiplying the provided rotation matrix with this matrix.

Parameters​

• angleRadians: number

• axis: Float3

Returns​

Mat4

Defined in​

src/types/TransformManager.ts:28


scaling()​

scaling(scale): Mat4

Returns a new matrix that is the result of multiplying the provided scale matrix with this matrix.

Parameters​

• scale: Float3

Returns​

Mat4

Defined in​

src/types/TransformManager.ts:18


translate()​

translate(translation): Mat4

Returns a new matrix that is the result of multiplying the provided translation matrix with this matrix.

Parameters​

• translation: Float3

Returns​

Mat4

Defined in​

src/types/TransformManager.ts:23