CGAL::compare_lexicographically

Comparison_result compare_lexicographically ( 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. This is the same function as compare_xy and exists for compatibility with Point_d<Kernel>.

Comparison_result compare_lexicographically ( Point_3<Kernel> p, Point_3<Kernel> q)
Compares the Cartesian coordinates of points p and q lexicographically in xyz order: first x-coordinates are compared, if they are equal, y-coordinates are compared, and if both x- and y- coordinate are equal, z-coordinates are compared. This is the same function as compare_xyz and exists for compatibility with Point_d<Kernel>.