\( \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.6.1 - 2D and 3D Linear Geometry Kernel
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
CGAL::compare_x() (2D/3D Linear Kernel)

compare1.png

Functions

template<typename Kernel >
Comparison_result CGAL::compare_x (const CGAL::Point_2< Kernel > &p, const CGAL::Point_2< Kernel > &q)
 compares the \( x\)-coordinates of p and q.
 
template<typename Kernel >
Comparison_result CGAL::compare_x (const CGAL::Point_3< Kernel > &p, const CGAL::Point_3< Kernel > &q)
 compares the \( x\)-coordinates of p and q.
 
template<typename Kernel >
Comparison_result CGAL::compare_x (const CGAL::Point_2< Kernel > &p, const CGAL::Line_2< Kernel > &l1, const CGAL::Line_2< Kernel > &l2)
 compares the \( x\)-coordinates of p and the intersection of lines l1 and l2. More...
 
template<typename Kernel >
Comparison_result CGAL::compare_x (const CGAL::Line_2< Kernel > &l, const CGAL::Line_2< Kernel > &h1, const CGAL::Line_2< Kernel > &h2)
 compares the \( x\)-coordinates of the intersection of line l with line h1 and with line h2. More...
 
template<typename Kernel >
Comparison_result CGAL::compare_x (const CGAL::Line_2< Kernel > &l1, const CGAL::Line_2< Kernel > &l2, const CGAL::Line_2< Kernel > &h1, const CGAL::Line_2< Kernel > &h2)
 compares the \( x\)-coordinates of the intersection of lines l1 and l2 and the intersection of lines h1 and h2. More...
 

Function Documentation

template<typename Kernel >
Comparison_result CGAL::compare_x ( const CGAL::Point_2< Kernel > &  p,
const CGAL::Line_2< Kernel > &  l1,
const CGAL::Line_2< Kernel > &  l2 
)

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

See Figure figcompare_x (a).

#include <CGAL/global_functions.h>

template<typename Kernel >
Comparison_result CGAL::compare_x ( const CGAL::Line_2< Kernel > &  l,
const CGAL::Line_2< Kernel > &  h1,
const CGAL::Line_2< Kernel > &  h2 
)

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

See Figure figcompare_x (b).

#include <CGAL/global_functions.h>

template<typename Kernel >
Comparison_result CGAL::compare_x ( const CGAL::Line_2< Kernel > &  l1,
const CGAL::Line_2< Kernel > &  l2,
const CGAL::Line_2< Kernel > &  h1,
const CGAL::Line_2< Kernel > &  h2 
)

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

See Figure figcompare_x (c).

#include <CGAL/global_functions.h>