CGAL::compare_lexicographically

#include <CGAL/predicates_d.h>

Comparison_result compare_lexicographically ( Point_d<R> p, Point_d<R> q)
Compares the Cartesian coordinates of points p and q lexicographically in ascending order of its Cartesian components p[i] and q[i] for i = 0,...,d-1.
Precondition: p.dimension() == q.dimension()