mirror of
https://github.com/recp/cglm.git
synced 2025-12-25 04:44:58 +00:00
add new matrix mat4x2
Initial function being glm_mat4x2_make Signed-off-by: Vincent Davis Jr <vince@underview.tech>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user