RVTDocs.com
Namespace: Autodesk.Revit.DB Class: XYZ

XYZ.IsAlmostEqualTo(XYZ)

Method
Description:
Determines whether this vector and the specified vector are the same within the tolerance (1.0e-09).
Remarks:
This routine uses Revit's default tolerance to compare two vectors to see if they are almost equivalent. Because the tolerance is small enough this can also be used to compare two points.
Syntax
public bool IsAlmostEqualTo(
	XYZ source
)
Parameters
Parameter Type Description
source XYZ The vector to compare with this vector.
Return Value
Type Description
Boolean True if the vectors are the same; otherwise, false.
Exceptions
Exception Condition
ArgumentNullException Thrown when source is.