getNormalMatrix method Null safety

Matrix3 getNormalMatrix()

Returns the normal matrix from this homogeneous transformation matrix. The normal matrix is the transpose of the inverse of the top-left 3x3 part of this 4x4 matrix.

Implementation

Matrix3 getNormalMatrix() => Matrix3.identity()..copyNormalMatrix(this);