Matrix.identity constructor

Matrix.identity()

Returns the 4x4 identity matrix.

Implementation

factory Matrix.identity() => .mat4(
  1, 0, 0, 0,
  0, 1, 0, 0,
  0, 0, 1, 0,
  0, 0, 0, 1,
);