spatial-monorepo / editor/src / invertMatrix3
Function: invertMatrix3()
invertMatrix3(
m):number[] |null
Defined in: packages/editor/src/invertMatrix3.ts:14
Computes the inverse of a 3×3 matrix stored in row-major order.
The input m is expected to have exactly 9 elements: [ m0, m1, m2, m3, m4, m5, m6, m7, m8 ]
Returns the inverse via adjugate / determinant, or null if the matrix is singular (determinant ≈ 0) — mirroring EditorController._invertH's null-return convention (issue #990/NF-60) so callers can skip gracefully instead of having to catch a thrown exception.
Parameters
m
number[]
Returns
number[] | null
