Determines whether 2 vectors are the same within the given tolerance.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
C#
public bool IsAlmostEqualTo( XYZ source, double tolerance )
Parameters
- source XYZ
- The vector to compare with this vector.
- tolerance Double
- The tolerance for equality check.
Return Value
BooleanTrue if the vectors are the same; otherwise, false.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when source is null. |
ArgumentException | Thrown when tolerance is less than 0. |