Point2d.CompareTo Method
Implements the i comparable interface. The point with the smallest y
is the smallest point. If y is same for the points, the one with smallest x
is the smallest one. This is suitable for sorting points for sweep algorithms for example.
This language is not supported or no code example is available.
This language is not supported or no code example is available.
This language is not supported or no code example is available.
public function CompareTo(
pnt : object
) : int;
This language is not supported or no code example is available.
Parameters
-
pnt
-
object
The point to compare this point with.
Return Value
int
-1 if this point is smaller, 1 if this point is larger and 0 if this point equals the other.
Implements
IComparable.CompareTo
.NET Framework
Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8