Geotools.Net

Coordinate.CompareTo Method 

Compares the current instance with another object of the same type. Since Coordinates are 2.5D, this routine ignores the z value when making the comparison.

[Visual Basic]
NotOverridable Public Function CompareTo( _
   ByVal obj As Object _
) As Integer Implements _
   IComparable.CompareTo
[C#]
public int CompareTo(
   object obj
);

Parameters

obj
An object to compare with this instance.

Return Value

ValueMeaning
Less than zeroa This instance is less than obj. b.
Zeroa This instance is equal to obj. b.
Greater than zeroa This instance is greater than obj. b.

Implements

IComparable.CompareTo

Remarks

If obj is not of type Coordinate, then an ArgumentException will be thrown.

See Also

Coordinate Class | Coordinate Members | Geotools.Geometries Namespace