URL: https://graphicscomputing.fr/cgp/reference/mat3/
Description: 3x3 matrix of floats (rotations, linear maps).

# mat3

C++ type: `matrix_stack<float,3,3>`.
3x3 matrix of floats (rotations, linear maps).

Fields:

- `numarray_stack<numarray_stack<float,3>,3> data` - Coefficients stored row by row as 3 rows of 3 floats, contiguous in memory.

Functions taking it:

- `std::string type_str(mat3 const&)` - Type name as a string: "mat3".
- `float det(mat3 const& m)` - Determinant of a 3x3 matrix.
- `mat3 inverse(mat3 const& m)` - Matrix inverse.
- `void opengl_uniform(opengl_shader_structure const& shader, std::string const& name, mat3 const& m, bool expected = true)` - Send a mat3 uniform (row-major, transposed on upload) to the shader; warns if the uniform is not found and expected is true.

Functions returning it:

- `mat3 tensor_product(vec3 const& a, vec3 const& b)` - Outer product a * transpose(b), as a 3x3 matrix.

Operators:

- `mat4 operator*(affine const& T1, mat3 const& T2)` - Product of the 4x4 matrix of the affine transform with a mat3 extended to a mat4.
- `mat4 operator*(mat3 const& T1, affine const& T2)` - Product of a mat3 extended to a mat4 with the 4x4 matrix of the affine transform.
- `mat4 operator*(affine_rt const& T1, mat3 const& T2)` - Product of the 4x4 matrix of the rigid transform with a mat3 extended to a mat4.
- `mat4 operator*(mat3 const& T1, affine_rt const& T2)` - Product of a mat3 extended to a mat4 with the 4x4 matrix of the rigid transform.
- `mat4 operator*(affine_rts const& T1, mat3 const& T2)` - Product of the 4x4 matrix of the transform with a mat3 extended to a mat4.
- `mat4 operator*(mat3 const& T1, affine_rts const& T2)` - Product of a mat3 extended to a mat4 with the 4x4 matrix of the transform.
- `mat3 operator*(rotation_transform const& r, mat3 const& M)` - Product of the rotation matrix with a mat3.
