Compares two points by y-coordinate, breaking ties by x-coordinate.
Formally, the invoking point (x0, y0) is less than the argument point (x1, y1)
if and only if either y0 < y1 or if y0 = y1 and x0 < x1.
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic int CompareTo(
Point2D that
)
Parameters
- that
- Type: Algs4NetPoint2D
the other point
Return Value
Type:
Int32the value
0 if this string is equal to the argument
string (precisely when
equals() returns
true); a negative
integer if this point is less than the argument point; and a positive
integer if this point is greater than the argument point
Implements
IComparableTCompareTo(T)
See Also