Skip to content

Next Gen STEP AP242 Native-ish BREP Geometric Modeling Kernel

Fix ToleranceMath Abs calls after Math namespace addition

Yuechen Li4db58d92cf0e
diff --git a/Aetheris.Kernel.Core/Numerics/ToleranceMath.cs b/Aetheris.Kernel.Core/Numerics/ToleranceMath.cs
index 8472a334..8dee5d15 100644
--- a/Aetheris.Kernel.Core/Numerics/ToleranceMath.cs
+++ b/Aetheris.Kernel.Core/Numerics/ToleranceMath.cs
@@ -5,7 +5,7 @@ public static class ToleranceMath
public static bool AlmostEqual(double a, double b, double tolerance)
{
var validatedTolerance = ValidateTolerance(tolerance);
- return Math.Abs(a - b) <= validatedTolerance;
+ return System.Math.Abs(a - b) <= validatedTolerance;
}
public static bool AlmostEqual(double a, double b, ToleranceContext context) => AlmostEqual(a, b, context.Linear);
@@ -13,7 +13,7 @@ public static class ToleranceMath
public static bool AlmostZero(double value, double tolerance)
{
var validatedTolerance = ValidateTolerance(tolerance);
- return Math.Abs(value) <= validatedTolerance;
+ return System.Math.Abs(value) <= validatedTolerance;
}
public static bool AlmostZero(double value, ToleranceContext context) => AlmostZero(value, context.Linear);