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
Value | Meaning |
---|---|
Less than zero | a This instance is less than obj. b. |
Zero | a This instance is equal to obj. b. |
Greater than zero | a This instance is greater than obj. b. |
If obj is not of type Coordinate, then an ArgumentException will be thrown.
Coordinate Class | Coordinate Members | Geotools.Geometries Namespace