Skip to content

anim-format (runtime format) / invert2d

Function: invert2d() ​

ts
function invert2d(m): Affine;

the inverse; a degenerate matrix (determinant exactly 0) → identity (the runtime's rule — document mat2d.invert throws instead)

Parameters ​

ParameterType
mreadonly number[]

Returns ​

Affine

HereSplash — 2D animation for the web