matrix4i.c file
Functions
- auto mat4i_identity(void) -> matrix4i
- Constructs the 4x4 identity matrix.
- auto mat4i_mul(const matrix4i a, const matrix4i b) -> matrix4i
- Multiplies two 4x4 integer matrices.
- auto mat4i_transpose(const matrix4i m) -> matrix4i
- Computes the transpose of a 4x4 integer matrix.
- auto mat4i_inverse(const matrix4i m) -> matrix4i
- Computes the inverse of a 4x4 integer matrix.
-
auto mat4i_determinant(const matrix4i m) -> vm_
int_ t - Computes the determinant of a 4x4 integer matrix (Laplace expansion along first row).
- auto mat4i_mul_vec4i(const matrix4i m, const vector4i v) -> vector4i
- Multiplies a 4x4 integer matrix by a vector4i.
-
auto mat4i_mul_vec3i(const matrix4i m,
const vector3i v,
const vm_
int_ t w) -> vector3i - Transforms a vector3i by a 4x4 integer matrix using homogeneous w.
Function documentation
matrix4i mat4i_transpose(const matrix4i m)
Computes the transpose of a 4x4 integer matrix.
| Parameters | |
|---|---|
| m | The input matrix. |
| Returns | The transposed matrix. |
matrix4i mat4i_inverse(const matrix4i m)
Computes the inverse of a 4x4 integer matrix.
| Parameters | |
|---|---|
| m | The input matrix. |
| Returns | The inverse matrix. |
vm_ int_ t mat4i_determinant(const matrix4i m)
Computes the determinant of a 4x4 integer matrix (Laplace expansion along first row).
| Parameters | |
|---|---|
| m | The input matrix. |
| Returns | The determinant value. |