Files
OpenNest/OpenNest.Core/Math/Tolerance.cs
2026-03-06 12:51:16 -05:00

15 lines
306 B
C#

using System;
namespace OpenNest.Math
{
public static class Tolerance
{
public const double Epsilon = 0.00001;
public static bool IsEqualTo(this double a, double b, double tolerance = Epsilon)
{
return System.Math.Abs(b - a) <= tolerance;
}
}
}