summaryrefslogtreecommitdiff
path: root/src/tests/common/test_math_helpers.h
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-14 15:14:25 +0100
committerskal <pascal.massimino@gmail.com>2026-02-14 15:14:25 +0100
commit8ce27b7e15f0fc65c8ee78950c7501660b936178 (patch)
tree391f32111b9a30a0156709b6c1ed2fae7b435d57 /src/tests/common/test_math_helpers.h
parente38be0dbf5816338ff97e2ee2f9adfff2902dc2b (diff)
style: Apply clang-format to codebase
Diffstat (limited to 'src/tests/common/test_math_helpers.h')
-rw-r--r--src/tests/common/test_math_helpers.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tests/common/test_math_helpers.h b/src/tests/common/test_math_helpers.h
index 99e7f9d..24d0f3a 100644
--- a/src/tests/common/test_math_helpers.h
+++ b/src/tests/common/test_math_helpers.h
@@ -2,8 +2,8 @@
// Common floating-point comparison helpers
#pragma once
-#include <cmath>
#include "util/mini_math.h"
+#include <cmath>
// Floating-point comparison with epsilon tolerance
inline bool test_near(float a, float b, float epsilon = 1e-6f) {
@@ -12,7 +12,6 @@ inline bool test_near(float a, float b, float epsilon = 1e-6f) {
// Vector comparison
inline bool test_near_vec3(vec3 a, vec3 b, float epsilon = 1e-6f) {
- return test_near(a.x, b.x, epsilon) &&
- test_near(a.y, b.y, epsilon) &&
+ return test_near(a.x, b.x, epsilon) && test_near(a.y, b.y, epsilon) &&
test_near(a.z, b.z, epsilon);
}