\( \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
CGAL::compare_x_at_y()

compare_x_at_y.png
See Also
CGAL::compare_xy()
CGAL::compare_xyz()
CGAL::compare_x()
CGAL::compare_y()
CGAL::compare_yx()
CGAL::compare_y_at_x()
CGAL::compare_z()

Functions

template<typename Kernel >
Comparison_result CGAL::compare_x_at_y (const CGAL::Point_2< Kernel > &p, const CGAL::Line_2< Kernel > &h)
 compares the \( x\)-coordinates of p and the horizontal projection of p on h. More...
 
template<typename Kernel >
Comparison_result CGAL::compare_x_at_y (const CGAL::Point_2< Kernel > &p, const CGAL::Line_2< Kernel > &h1, const CGAL::Line_2< Kernel > &h2)
 This function compares the \( x\)-coordinates of the horizontal projection of p on h1 and on h2. More...
 
template<typename Kernel >
Comparison_result CGAL::compare_x_at_y (const CGAL::Line_2< Kernel > &l1, const CGAL::Line_2< Kernel > &l2, const CGAL::Line_2< Kernel > &h)
 Let p be the intersection of lines l1 and l2. More...
 
template<typename Kernel >
Comparison_result CGAL::compare_x_at_y (const CGAL::Line_2< Kernel > &l1, const CGAL::Line_2< Kernel > &l2, const CGAL::Line_2< Kernel > &h1, const CGAL::Line_2< Kernel > &h2)
 Let p be the intersection of lines l1 and l2. More...
 

Function Documentation

template<typename Kernel >
Comparison_result CGAL::compare_x_at_y ( const CGAL::Point_2< Kernel > &  p,
const CGAL::Line_2< Kernel > &  h 
)

compares the \( x\)-coordinates of p and the horizontal projection of p on h.

See Figure figcomparexaty (a).

Precondition
h is not horizontal.

#include <CGAL/Kernel/global_functions.h>

template<typename Kernel >
Comparison_result CGAL::compare_x_at_y ( const CGAL::Point_2< Kernel > &  p,
const CGAL::Line_2< Kernel > &  h1,
const CGAL::Line_2< Kernel > &  h2 
)

This function compares the \( x\)-coordinates of the horizontal projection of p on h1 and on h2.

See Figure figcomparexaty (b).

Precondition
h1 and h2 are not horizontal.

#include <CGAL/Kernel/global_functions.h>

template<typename Kernel >
Comparison_result CGAL::compare_x_at_y ( const CGAL::Line_2< Kernel > &  l1,
const CGAL::Line_2< Kernel > &  l2,
const CGAL::Line_2< Kernel > &  h 
)

Let p be the intersection of lines l1 and l2.

This function compares the \( x\)-coordinates of p and the horizontal projection of p on h. See Figure figcomparexaty (c).

Precondition
l1 and l2 intersect and are not horizontal; h is not horizontal.

#include <CGAL/Kernel/global_functions.h>

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

Let p be the intersection of lines l1 and l2.

This function compares the \( x\)-coordinates of the horizontal projection of p on h1 and on h2 See Figure figcomparexaty (d).

Precondition
l1 and l2 intersect and are not horizontal; h1 and h2 are not horizontal.

#include <CGAL/Kernel/global_functions.h>