Linear algebra functions utility header.
More...
#include <math.h>
Go to the source code of this file.
Linear algebra functions utility header.
Basic floating point vector and matrix types and operations.
- Author
- Irving Wang (irvin.nosp@m.gw@p.nosp@m.urdue.nosp@m..edu)
◆ matrix_multiply_matrix3x3()
Multiply a 3x3 matrix with another 3x3 matrix.
- Parameters
-
| a | The first input matrix |
| b | The second input matrix |
- Returns
- The resulting matrix AB.
◆ matrix_multiply_vector3()
Multiply a 3x3 matrix with a 3D vector.
- Parameters
-
| mat | The input matrix |
| in | The input vector |
- Returns
- The resulting vector.
◆ vector3_magnitude()
| static float vector3_magnitude |
( |
const vector3_t | vec | ) |
|
|
inlinestatic |
Calculate the magnitude of a 3D vector.
- Parameters
-
- Returns
- The magnitude of the vector.
◆ vector3_normalize()
Normalize a 3D vector.
- Parameters
-
- Returns
- The normalized vector.