Click or drag to resize
Point2DCompareTo Method
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: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public int CompareTo(
	Point2D that
)

Parameters

that
Type: Algs4NetPoint2D
the other point

Return Value

Type: Int32
the 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