mirror of
https://github.com/recp/cglm.git
synced 2025-12-26 02:25:02 +00:00
vec4: optimize vec4 norm and norm2
This commit is contained in:
@@ -84,6 +84,11 @@ test_assert_mat4_eq2(mat4 m1, mat4 m2, float eps) {
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
test_assert_eqf(float a, float b) {
|
||||
assert_true(fabsf(a - b) <= 0.000009); /* rounding errors */
|
||||
}
|
||||
|
||||
void
|
||||
test_assert_vec3_eq(vec3 v1, vec3 v2) {
|
||||
assert_true(fabsf(v1[0] - v2[0]) <= 0.000009); /* rounding errors */
|
||||
|
||||
Reference in New Issue
Block a user