XYZ.IsAlmostEqualTo
Description:
Determines whether 2 vectors are the same within the given tolerance.
Determines whether 2 vectors are the same within the given tolerance.
Remarks:
This routine uses an input tolerance to compare two vectors to see if they are almost equivalent. Because it is comparing two vectors the tolerance value is not in length units but instead represents the variation in direction between the vectors. For very small tolerance values it should also be possible to compare two points with this method. To compute the distance between two points for a comparison with a larger allowable difference, use DistanceTo(XYZ).
This routine uses an input tolerance to compare two vectors to see if they are almost equivalent. Because it is comparing two vectors the tolerance value is not in length units but instead represents the variation in direction between the vectors. For very small tolerance values it should also be possible to compare two points with this method. To compute the distance between two points for a comparison with a larger allowable difference, use DistanceTo(XYZ).
Overloads (2):
public bool IsAlmostEqualTo(
XYZ source,
double tolerance
)
-
Thrown when source is.
-
Thrown when tolerance is less than 0.