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

#include <CGAL/Arr_polycurve_traits_2.h>

Public Member Functions

X_monotone_curve_2 operator() (const X_monotone_curve_2 &xcv, const Point_2 &src, const Point_2 &tgt) const
 Obtain a trimmed version of the polycurve with src and tgt as end vertices. More...
 

Member Function Documentation

◆ operator()()

template<typename SubcurveTraits_2>
X_monotone_curve_2 CGAL::Arr_polycurve_traits_2< SubcurveTraits_2 >::Trim_2::operator() ( const X_monotone_curve_2 xcv,
const Point_2 src,
const Point_2 tgt 
) const

Obtain a trimmed version of the polycurve with src and tgt as end vertices.

Src and tgt will be swaped if they do not conform to the direction of the polycurve.