tests: add more tests for vec3

This commit is contained in:
Recep Aslantas
2019-09-23 22:39:53 +03:00
parent 37c2650b0a
commit 7c10840a85
4 changed files with 332 additions and 24 deletions

View File

@@ -88,4 +88,10 @@ test_eq(float a, float b) {
return fabsf(a - b) <= 1e-6;
}
CGLM_INLINE
bool
test_eq_th(float a, float b, float th) {
return fabsf(a - b) <= th;
}
#endif /* test_common_h */