Matrix2.identity constructor
Matrix2.identity()
- Sets this matrix to the 2x2 identity matrix.
*
- @return {Matrix2} A reference to this matrix.
Implementation
Matrix2.identity() {
storage = Float32List.fromList(
[1, 0,
0, 1]
);
}