Introduced the concep ArrTraits::ConstructCurve_2 (required by `ArraangementConstructCurveTraits_2 concept)

This commit is contained in:
Efi Fogel 2021-12-16 17:51:37 +02:00
parent 2200314849
commit 1d91eb1f88
3 changed files with 28 additions and 1 deletions

View File

@ -0,0 +1,26 @@
namespace ArrTraits {
/*! \ingroup PkgArrangementOnSurface2ConceptsFunctionObjects
* \cgalConcept
*
* \cgalRefines Functor
*
* \cgalHasModel ArrangementConstructCurveTraits_2::Construct_curve_2
*/
class ConstructCurve_2 {
public:
/// \name Operations
/// A model of this concept must provide:
/// @{
/*! returns a curve connecting `p1` and `p2` (i.e., the
* two input points are its endpoints).
*/
ArrTraits::Curve_2 operator()(ArrTraits::Point_2 p1, ArrTraits::Point_2 p2);
/// @}
}; /* end ArrTraits::ConstructCurve_2 */
}

View File

@ -23,7 +23,7 @@ public:
/// \name Functor Types
/// @{
/*! models the concept `ArrTraits::ConstructXMonotoneCurve_2`.
/*! models the concept `ArrTraits::ConstructCurve_2`.
*/
typedef unspecified_type Construct_curve_2;

View File

@ -184,6 +184,7 @@ implemented as peripheral classes or as free (global) functions.
- `ArrTraits::MakeXMonotone_2`
- `ArrTraits::Approximate_2`
- `ArrTraits::ConstructXMonotoneCurve_2`
- `ArrTraits::ConstructCurve_2`
\cgalCRPSection{Classes}