diff --git a/Principal_component_analysis/include/CGAL/linear_least_squares_fitting_3.h b/Principal_component_analysis/include/CGAL/linear_least_squares_fitting_3.h index 7bce2de59df..1635f9641fa 100644 --- a/Principal_component_analysis/include/CGAL/linear_least_squares_fitting_3.h +++ b/Principal_component_analysis/include/CGAL/linear_least_squares_fitting_3.h @@ -339,20 +339,6 @@ linear_least_squares_fitting_3(InputIterator first, return CGAL::linear_least_squares_fitting_3(first,beyond,plane,centroid,K()); } -// does not return the centroid and deduces the kernel as well. -template < typename InputIterator, - typename Plane > -inline -typename Kernel_traits::Kernel::FT -linear_least_squares_fitting_3(InputIterator first, - InputIterator beyond, - Plane& plane) -{ - typedef typename std::iterator_traits::value_type Value_type; - typedef typename Kernel_traits::Kernel K; - return CGAL::linear_least_squares_fitting_3(first,beyond,plane,K()); -} - /* // fit line @@ -402,21 +388,23 @@ linear_least_squares_fitting_3(InputIterator first, typedef typename Kernel_traits::Kernel K; return CGAL::linear_least_squares_fitting_3(first,beyond,line,centroid,K()); } +*/ // does not return the centroid and deduces the kernel as well. template < typename InputIterator, - typename Line > + typename Object > inline -typename Kernel_traits::Kernel::FT +typename Kernel_traits::Kernel::FT linear_least_squares_fitting_3(InputIterator first, InputIterator beyond, - Line& line) + Object& o) { typedef typename std::iterator_traits::value_type Value_type; typedef typename Kernel_traits::Kernel K; - return CGAL::linear_least_squares_fitting_3(first,beyond,line,K()); + return CGAL::linear_least_squares_fitting_3(first,beyond,o,K()); } -*/ + + CGAL_END_NAMESPACE #endif // CGAL_LINEAR_LEAST_SQUARES_FITTING_3_H