refactor: Weaken T constraint for is_within_range ext

There is no reason T has to implement IFloatingPoint<T>
This commit is contained in:
John Colvin committed 2022-08-07 13:51:54 -04:00
1 parent 329ddc576d
commit 086ccbb3fa
1 file changed
+1 -1
@@ -62,7 +62,7 @@ namespace bts.utils {
MathUtils.marginal_equals(x, y, margin);
public static bool is_within_range<T>(
this T value, T min, T max) where T : IFloatingPoint<T> =>
this T value, T min, T max) where T : IComparisonOperators<T, T> =>
MathUtils.is_within_range(value, min, max);
public static T within_range<T>(