BestCombination

This commit is contained in:
AJ
2022-12-11 21:42:16 -05:00
parent b65dd1ec7d
commit 93f5571bbb
3 changed files with 120 additions and 0 deletions

14
SawCut/Tolerance.cs Normal file
View File

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