Class VectorToleranceComparer
Tolerance-based equality comparer for Vector. Two vectors are considered equal if every component pair differs by at most the tolerance.
public sealed class VectorToleranceComparer : IEqualityComparer<Vector>
- Inheritance
-
VectorToleranceComparer
- Implements
- Inherited Members
Constructors
VectorToleranceComparer()
public VectorToleranceComparer()
VectorToleranceComparer(double)
public VectorToleranceComparer(double tolerance)
Parameters
tolerancedouble
Methods
Equals(Vector, Vector)
Determines whether the specified objects are equal.
public bool Equals(Vector a, Vector b)
Parameters
Returns
GetHashCode(Vector)
Returns a hash code for the specified object.
public int GetHashCode(Vector obj)
Parameters
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.