matrix3i.c file
Functions
- auto mat3i_identity(void) -> matrix3i
- Constructs the 3x3 identity matrix.
- auto mat3i_mul(const matrix3i a, const matrix3i b) -> matrix3i
- Multiplies two 3x3 integer matrices.
- auto mat3i_transpose(const matrix3i m) -> matrix3i
- Computes the transpose of a 3x3 integer matrix.
-
auto mat3i_determinant(const matrix3i m) -> vm_
int_ t - Computes the determinant of a 3x3 integer matrix.
- auto mat3i_inverse(const matrix3i m) -> matrix3i
- Computes the inverse of a 3x3 integer matrix.
- auto mat3i_mul_vec3i(const matrix3i m, const vector3i v) -> vector3i
- Multiplies a 3x3 integer matrix by a vector3i.
- auto mat3i_mul_vec2i(const matrix3i m, const vector2i v) -> vector2i
- Applies a 3x3 integer affine transform to a vector2i.
Function documentation
matrix3i mat3i_transpose(const matrix3i m)
Computes the transpose of a 3x3 integer matrix.
| Parameters | |
|---|---|
| m | The input matrix. |
| Returns | The transposed matrix. |
vm_ int_ t mat3i_determinant(const matrix3i m)
Computes the determinant of a 3x3 integer matrix.
| Parameters | |
|---|---|
| m | The input matrix. |
| Returns | The determinant value. |
matrix3i mat3i_inverse(const matrix3i m)
Computes the inverse of a 3x3 integer matrix.
| Parameters | |
|---|---|
| m | The input matrix. |
| Returns | The inverse matrix. |