add new matrix mat4x2

Initial function being

glm_mat4x2_make

Signed-off-by: Vincent Davis Jr <vince@underview.tech>
This commit is contained in:
Vincent Davis Jr
2023-07-16 20:19:25 -04:00
parent 5193b50133
commit 2df26c0ecf
24 changed files with 310 additions and 1 deletions

View File

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