Function

CGAL::compare_xyz

Depending on which Cgal kernel is used, different versions of this global function are available. This is described below.

With the basic 3D Kernel (see Chapter 11)

Comparison_result compare_xyz ( 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.

With the 3D Spherical Kernel (see Chapter 14)

#include <CGAL/global_functions_spherical_kernel_3.h>

If this kernel is used, in addition to the function and the combination of 2D types described above, another version of the function is provided.

Comparison_result compare_xyz ( Circular_arc_point_3<SphericalKernel> p, Circular_arc_point_3<SphericalKernel> q)
Compares the Cartesian coordinates of points p and q lexicographically.

Comparison_result compare_xyz ( Circular_arc_point_3<SphericalKernel> p, Point_3<SphericalKernel> q)
Compares the Cartesian coordinates of points p and q lexicographically.

See Also

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