CGAL 6.0.2 - 2D Arrangements

Loading...
Searching...
No Matches
List of all members | Public Member Functions
CGAL::Arr_conic_traits_2< RatKernel, AlgKernel, NtTraits >::Trim_2 Class Reference

`#include <CGAL/Arr_conic_traits_2.h>`

## Definition

template<typename RatKernel, typename AlgKernel, typename NtTraits>
class CGAL::Arr_conic_traits_2< RatKernel, AlgKernel, NtTraits >::Trim_2

A functor that trims a conic arc.

## Public Member Functions
X_monotone_curve_2 | operator() (const X_monotone_curve_2 &xcv, const Point_2 &source, const Point_2 &target) const
| Trims the given \(x\)-monotone arc to new endpoints.

## Member Function Documentation

## ◆ operator()()

template<typename RatKernel , typename AlgKernel , typename NtTraits >

X_monotone_curve_2 CGAL::Arr_conic_traits_2< RatKernel, AlgKernel, NtTraits >::Trim_2::operator() | ( | const X_monotone_curve_2 & | xcv,
|  | const Point_2 & | source,
|  | const Point_2 & | target
| ) |  | const

Trims the given \(x\)-monotone arc to new endpoints.

Parameters

  xcv | The \(x\)-monotone arc
  source | The new source point.
  target | The new target point.

Precondition
  `source` and `target` lies on the arc.