Add Construct_projected_point_2::operator()(Segment_2,Point_2)

This commit is contained in:
Andreas Fabri
2024-03-04 15:42:49 +00:00
parent 6453b08580
commit 84362a2b1e
4 changed files with 657 additions and 0 deletions
@@ -3278,6 +3278,7 @@ namespace CartesianKernelFunctors {
{
typedef typename K::Point_2 Point_2;
typedef typename K::Line_2 Line_2;
typedef typename K::Segment_2 Segment_2;
public:
typedef Point_2 result_type;
@@ -3289,6 +3290,15 @@ namespace CartesianKernelFunctors {
line_project_pointC2(l.a(), l.b(), l.c(), p.x(), p.y(), x, y);
return construct_point_2(x, y);
}
Point_2
operator()( const Segment_2& s, const Point_2& p ) const
{
assert(false);
return p;
// CommonKernelFunctors::Construct_projected_point_3<K>()(s,p,K());
}
};