Table of Contents

Class CoordinateArrays.BidirectionalComparator

Namespace
NetTopologySuite.Geometries
Assembly
NetTopologySuite.dll

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.

public class CoordinateArrays.BidirectionalComparator : IComparer<Coordinate[]>
Inheritance
CoordinateArrays.BidirectionalComparator
Implements
Inherited Members

Constructors

BidirectionalComparator()

public BidirectionalComparator()

Methods

Compare(Coordinate[], Coordinate[])

Compares the specified Coordinates arrays.

public int Compare(Coordinate[] pts1, Coordinate[] pts2)

Parameters

pts1 Coordinate[]

An array of coordinates

pts2 Coordinate[]

An array of coordinates

Returns

int

OldCompare(Coordinate[], Coordinate[])

[Obsolete("Old")]
public int OldCompare(Coordinate[] pts1, Coordinate[] pts2)

Parameters

pts1 Coordinate[]
pts2 Coordinate[]

Returns

int