2025 Class
Changes 1
C

MathComparisonUtils

Description:
This class contains a set of mathematical utilities to compare doubles, using the internal tolerance.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.MathComparisonUtils
public static class MathComparisonUtils
Name Return Type Description
M IsAlmostEqual(Double, Double) Boolean Checks if two doubles are almost equal, using the internal tolerance.
M IsAlmostZero(Double) Boolean Checks if value is almost zero, using the internal tolerance.
M IsGreaterThan(Double, Double) Boolean Checks if value1 is strictly greater than value2, using the internal tolerance.
M IsGreaterThanOrAlmostEqual(Double, Double) Boolean Checks if value1 is greater than or almost equal to value2, using the internal tolerance.
M IsLessThan(Double, Double) Boolean Checks if value1 is strictly less than value2, using the internal tolerance.
M IsLessThanOrAlmostEqual(Double, Double) Boolean Checks if value1 is less than or almost equal to value2, using the internal tolerance.