\( \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 5.0.2 - 2D Arrangements
CGAL::Arr_polycurve_traits_2< SubcurveTraits_2 >::Push_front_2 Class Reference

#include <CGAL/Arr_polycurve_traits_2.h>

Definition

Functor to augment a polycurve by either adding a vertex or a subcurve at the front.

Operations

void operator() (Curve_2 &cv, const Subcurve_2 &subcurve) const
 Append a subcurve subcurve to an existing polycurve cv at the front. More...
 
void operator() (X_monotone_curve_2 &xcv, const X_monotone_subcurve_2 &subcurve) const
 Append a subcurve subcurve to an existing \(x\)-monotone polycurve xcv at the front. More...
 

Member Function Documentation

◆ operator()() [1/2]

template<typename SubcurveTraits_2>
void CGAL::Arr_polycurve_traits_2< SubcurveTraits_2 >::Push_front_2::operator() ( Curve_2 cv,
const Subcurve_2 subcurve 
) const

Append a subcurve subcurve to an existing polycurve cv at the front.

If cv is empty, subcurve will be its first subcurve.

Parameters
cva polycurve. Note, cv is (not necessarily) \(x\)-monotone.
subcurvea subcurve (not necessarily \(x\)-monotone) to be appended to cv

◆ operator()() [2/2]

template<typename SubcurveTraits_2>
void CGAL::Arr_polycurve_traits_2< SubcurveTraits_2 >::Push_front_2::operator() ( X_monotone_curve_2 xcv,
const X_monotone_subcurve_2 subcurve 
) const

Append a subcurve subcurve to an existing \(x\)-monotone polycurve xcv at the front.

If xcv is empty, subcurve will be its first subcurve.

Parameters
xcvexisting \(x\)-monotone polycurve
subcurvethe subcurve to be added
Precondition
If xcv is not empty then subcurve extends xcv to the left if xcv is oriented right-to-left. Otherwise, subcurve extends xcv to the right.
subcurve is not degenerated.
xcv and subcurve should have the same orientation