vec: add one and zero helpers for vectors

This commit is contained in:
Recep Aslantas
2018-04-13 11:57:14 +03:00
parent c489955b00
commit 25fc3d0284
13 changed files with 165 additions and 2 deletions

View File

@@ -70,4 +70,12 @@ test_vec4(void **state) {
test_rand_vec4(v);
test_assert_eqf(test_vec4_norm2(v), glm_vec4_norm2(v));
}
/* test zero */
glm_vec4_zero(v);
test_assert_vec4_eq(GLM_VEC4_ZERO, v);
/* test one */
glm_vec4_one(v);
test_assert_vec4_eq(GLM_VEC4_ONE, v);
}