CGAL::compare_xy

Comparison_result compare_xy ( Point_2<Kernel> p, Point_2<Kernel> q)
Compares the Cartesian coordinates of points p and q lexicographically in xy order: first x-coordinates are compared, if they are equal, y-coordinates are compared.

Comparison_result compare_xy ( Point_3<Kernel> p, Point_3<Kernel> q)
Compares the Cartesian coordinates of points p and q lexicographically in xy order: first x-coordinates are compared, if they are equal, y-coordinates are compared.

See Also

CGAL::compare_xyz
CGAL::compare_x
CGAL::compare_x_at_y
CGAL::compare_y
CGAL::compare_yx
CGAL::compare_y_at_x
CGAL::compare_z