Skip to content

invertMatrix4

invertMatrix4(m, result?): Float32Array

Defined in: math/mat4.ts:192

General 4x4 inverse (cofactor expansion). A singular matrix yields the untouched result — callers treat that as “no inverse” rather than NaN.

The view/projection builders above have exact inverses of their own; this is for a matrix nobody can name, such as a composed view-projection.

Float32Array

Float32Array<ArrayBufferLike>

Float32Array