Class CoordinateArrays.BidirectionalComparator
A comparator for Coordinate arrays modulo their directionality. E.g. if two coordinate arrays are identical but reversed they will compare as equal under this ordering. If the arrays are not equal, the ordering returned is the ordering in the forward direction.
Implements
Inherited Members
Namespace: NetTopologySuite.Geometries
Assembly: NetTopologySuite.dll
Syntax
public class BidirectionalComparator : IComparer<Coordinate[]>
Methods
| Improve this Doc View SourceCompare(Coordinate[], Coordinate[])
Compares the specified Coordinates arrays.
Declaration
public int Compare(Coordinate[] pts1, Coordinate[] pts2)
Parameters
Type | Name | Description |
---|---|---|
Coordinate[] | pts1 | An array of coordinates |
Coordinate[] | pts2 | An array of coordinates |
Returns
Type | Description |
---|---|
Int32 |
OldCompare(Coordinate[], Coordinate[])
Declaration
[Obsolete("Old")]
public int OldCompare(Coordinate[] pts1, Coordinate[] pts2)
Parameters
Type | Name | Description |
---|---|---|
Coordinate[] | pts1 | |
Coordinate[] | pts2 |
Returns
Type | Description |
---|---|
Int32 |