diff options
| author | realtradam <[email protected]> | 2023-06-16 01:18:13 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2023-06-16 01:18:13 -0400 |
| commit | a47cc44ef7191d03f8ca1b8d4e6b9dd34fba1807 (patch) | |
| tree | f7e358545f5043df20695d0cf51dcf8caa10cb12 /include/rodeo/math/mat4.h | |
| parent | 425516a9c53183179c43517f1b6501a790378a05 (diff) | |
| download | RodeoKit-a47cc44ef7191d03f8ca1b8d4e6b9dd34fba1807.tar.gz RodeoKit-a47cc44ef7191d03f8ca1b8d4e6b9dd34fba1807.zip | |
matrix math wrapper as well as various refactors for consistant and cleaner code
Diffstat (limited to 'include/rodeo/math/mat4.h')
| -rw-r--r-- | include/rodeo/math/mat4.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/include/rodeo/math/mat4.h b/include/rodeo/math/mat4.h new file mode 100644 index 0000000..5dbc872 --- /dev/null +++ b/include/rodeo/math/mat4.h @@ -0,0 +1,38 @@ +#pragma once + +// -- internal -- +// public +#include "rodeo/math/mat4_t.h" +#include "rodeo/math.h" + +rodeo_math_mat4_t +rodeo_math_mat4_identity(void); + +rodeo_math_mat4_t +rodeo_math_mat4_zero(void); + +rodeo_math_mat4_t +rodeo_math_mat4_transpose(rodeo_math_mat4_t m); + +rodeo_math_mat4_t +rodeo_math_mat4_translate(rodeo_math_mat4_t m, rodeo_math_vec3_t v); + +rodeo_math_mat4_t +rodeo_math_mat4_scale(rodeo_math_mat4_t m, rodeo_math_vec3_t v); + +rodeo_math_mat4_t +rodeo_math_mat4_rotate(rodeo_math_mat4_t m, float turns, rodeo_math_vec3_t v); + +rodeo_math_mat4_t +rodeo_math_mat4_multiply(rodeo_math_mat4_t a, rodeo_math_mat4_t b); + +rodeo_math_mat4_t +rodeo_math_mat4_orthographic( + float left, + float right, + float bottom, + float top, + float near, + float far +); + |
