aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/rtw/vec.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/rtw/vec.zig')
-rw-r--r--src/rtw/vec.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtw/vec.zig b/src/rtw/vec.zig
index 9b2c3f0..74864f1 100644
--- a/src/rtw/vec.zig
+++ b/src/rtw/vec.zig
@@ -97,7 +97,7 @@ pub const Vec3 = struct {
pub fn near_zero(v: Vec3) bool {
const epsilon = 1e-8;
- return @fabs(v.x) < epsilon and @fabs(v.y) < epsilon and @fabs(v.z) < epsilon;
+ return @abs(v.x) < epsilon and @abs(v.y) < epsilon and @abs(v.z) < epsilon;
}
};