From 0d938ef6be27e5ad5e6b547b1e6334295c9f566f Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 6 Jan 2024 13:09:30 -0700 Subject: [PATCH] math: add inf, isInf Signed-off-by: Stephen Gutekanst --- src/math/main.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/math/main.zig b/src/math/main.zig index 34205d06..9b2d362e 100644 --- a/src/math/main.zig +++ b/src/math/main.zig @@ -132,10 +132,12 @@ pub const nan_f64 = std.math.nan(f64); // need to do this and instead can just import mach.math - we add to this list of re-exports as // needed. +pub const inf = std.math.inf; pub const sqrt = std.math.sqrt; pub const sin = std.math.sin; pub const cos = std.math.cos; pub const isNan = std.math.isNan; +pub const isInf = std.math.isInf; pub const pi = std.math.pi; pub const clamp = std.math.clamp; pub const log10 = std.math.log10;