Matrix3.identity constructor

Matrix3.identity()

Creates a 3x3 matrix with the given arguments in row-major order. If no arguments are provided, the constructor initializes the Matrix3 to the 3x3 identity matrix.

Implementation

Matrix3.identity() {
  storage = Float32List.fromList([1, 0, 0, 0, 1, 0, 0, 0, 1]);
}