Class PerOrdinateEqualityComparer
A class that can be used to test coordinates for equality.
This class test for each ordinate if the distance is less than a tolerance value.
Inheritance
PerOrdinateEqualityComparer
Inherited Members
Namespace: NetTopologySuite.Geometries
Assembly: NetTopologySuite.dll
Syntax
public sealed class PerOrdinateEqualityComparer : CoordinateEqualityComparer, IEqualityComparer<Coordinate>, IEqualityComparer
Methods
| Improve this Doc View SourceAreEqual(Coordinate, Coordinate, Double)
Method to test 2 Coordinates for equality, allowing a tolerance.
Declaration
protected override bool AreEqual(Coordinate a, Coordinate b, double tolerance)
Parameters
Type | Name | Description |
---|---|---|
Coordinate | a | The 1st Coordinate |
Coordinate | b | The 2nd Coordinate |
Double | tolerance | A tolerance value |
Returns
Type | Description |
---|---|
Boolean |
|