Skip to content

@modoki/engine / index / invert2D

Function: invert2D()

invert2D(m): Mat2D

Invert an affine. Returns the identity if the matrix is (near-)singular (degenerate zero-scale bind pose) rather than emitting NaNs downstream.

Parameters

m

Mat2D

Returns

Mat2D

Built with Modoki.