mirror of https://github.com/CGAL/cgal
Add Construct_point_on_3(Line_3), for efficiency
This commit is contained in:
parent
51a1179d3b
commit
c685810119
|
|
@ -5922,6 +5922,11 @@ public:
|
|||
Kernel::Point_3 operator()(const Kernel::Line_3& l,
|
||||
const Kernel::FT i);
|
||||
|
||||
/*!
|
||||
returns `point(0)` on `l`, identical to `operator()(l,0)`.
|
||||
*/
|
||||
Kernel::Point_3 operator()(const Kernel::Line_3& l);
|
||||
|
||||
/*!
|
||||
returns an arbitrary point on `h`.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -2176,6 +2176,10 @@ namespace CommonKernelFunctors {
|
|||
public:
|
||||
typedef Point_3 result_type;
|
||||
|
||||
const Point_3&
|
||||
operator()( const Line_3& l) const
|
||||
{ return l.rep().point(); }
|
||||
|
||||
Point_3
|
||||
operator()( const Line_3& l, const FT i) const
|
||||
{ return l.rep().point(i); }
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ public:
|
|||
|
||||
Point_3 point() const
|
||||
{
|
||||
return R().construct_point_on_3_object()(*this, 0);
|
||||
return R().construct_point_on_3_object()(*this);
|
||||
}
|
||||
|
||||
Point_3 point(const FT i) const
|
||||
|
|
|
|||
Loading…
Reference in New Issue