\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 4.10.1 - 2D and 3D Linear Geometry Kernel
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Kernel::CompareX_2 Concept Reference

Definition

compare1.png
Refines:
AdaptableFunctor (with two arguments)
See Also
CGAL::compare_x()

Operations

A model of this concept must provide:

Comparison_result operator() (const Kernel::Point_2 &p, const Kernel::Point_2 &q)
 compares the Cartesian \( x\)-coordinates of points p and q
 
Comparison_result operator() (const Kernel::Point_2 &p, const Kernel::Line_2 &l1, const Kernel::Line_2 &l2)
 compares the \( x\)-coordinates of p and the intersection of lines l1 and l2. More...
 
Comparison_result operator() (const Kernel::Line_2 &l, const Kernel::Line_2 &h1, const Kernel::Line_2 &h2)
 compares the x-coordinates of the intersection of line l with line h1 and with line h2. More...
 
Comparison_result operator() (const Kernel::Line_2 &l1, const Kernel::Line_2 &l2, const Kernel::Line_2 &h1, const Kernel::Line_2 &h2)
 compares the \( x\)-coordinates of the intersection of lines l1 and l2 and the intersection of lines h1 and h2. More...
 

Member Function Documentation

Comparison_result Kernel::CompareX_2::operator() ( const Kernel::Point_2 p,
const Kernel::Line_2 l1,
const Kernel::Line_2 l2 
)

compares the \( x\)-coordinates of p and the intersection of lines l1 and l2.

See Figure fig-compare12 (a).

Comparison_result Kernel::CompareX_2::operator() ( const Kernel::Line_2 l,
const Kernel::Line_2 h1,
const Kernel::Line_2 h2 
)

compares the x-coordinates of the intersection of line l with line h1 and with line h2.

See Figure fig-compare12 (b).

Comparison_result Kernel::CompareX_2::operator() ( const Kernel::Line_2 l1,
const Kernel::Line_2 l2,
const Kernel::Line_2 h1,
const Kernel::Line_2 h2 
)

compares the \( x\)-coordinates of the intersection of lines l1 and l2 and the intersection of lines h1 and h2.

See Figure fig-compare12 (c).