- -1 lengthA is less than lengthB.
- 0 lengthA is equal to lengthB to within linear resolution.
- +1 lengthA is greater than lengthB.
Comparing lengths and angles
The Accuracy class provides methods for comparing lengths and angles.
The CompareLengths method takes two arguments, lengthA and lengthB, and returns an integer result:
Corresponding methods are provided for angles: CompareAngles, EqualAngles, AngleIsZero, AngleIsPositive, and AngleIsNegative.
Was this page helpful?