3x3 float matrix (mat3 in GLSL)
The matrix can be constructed from an array with 3x3 elements, aligned in column-major order. For example,a translation by (x, y) looks as follows:
float[9] array = [ 1, 0, 0, 0, 1, 0, x, y, 1 ]; auto matrix = Mat3(array);
$(PARA Mat4 can also be converted from a $(TRANSFORM_LINK Transform).)
Transform transform; auto matrix = Mat3(transform);
See Implementation
3x3 float matrix (mat3 in GLSL)
The matrix can be constructed from an array with 3x3 elements, aligned in column-major order. For example,a translation by (x, y) looks as follows:
$(PARA Mat4 can also be converted from a $(TRANSFORM_LINK Transform).)