add new matrix mat4x3

Initial function being

glm_mat4x3_make

Signed-off-by: Vincent Davis Jr <vince@underview.tech>
This commit is contained in:
Vincent Davis Jr
2023-07-17 22:57:52 -04:00
parent 4bb7e778c4
commit 3d292c3a2e
24 changed files with 318 additions and 0 deletions

View File

@@ -325,6 +325,19 @@ test_assert_mat4x2_eq_zero(mat4x2 m4x2) {
TEST_SUCCESS
}
test_status_t
test_assert_mat4x3_eq_zero(mat4x3 m4x3) {
int i, j;
for (i = 0; i < 4; i++) {
for (j = 0; j < 3; j++) {
ASSERT(test_eq(m4x3[i][j], 0.0f))
}
}
TEST_SUCCESS
}
test_status_t
test_assert_eqf(float a, float b) {
ASSERT(fabsf(a - b) <= 0.000009); /* rounding errors */