From 029d9416cc9c3dc952dfb45d6f73e641e58914f6 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Thu, 29 May 2008 09:30:10 +0000 Subject: [PATCH] Added Compare_squared_radius_3 --- .../include/CGAL/Cartesian/function_objects.h | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/Cartesian_kernel/include/CGAL/Cartesian/function_objects.h b/Cartesian_kernel/include/CGAL/Cartesian/function_objects.h index 3ce3866cfb5..f96e7d49f75 100644 --- a/Cartesian_kernel/include/CGAL/Cartesian/function_objects.h +++ b/Cartesian_kernel/include/CGAL/Cartesian/function_objects.h @@ -470,6 +470,46 @@ namespace CartesianKernelFunctors { } }; + + template + class Compare_squared_radius_3 + { + typedef typename K::Point_3 Point_3; + typedef typename K::FT FT; + public: + typedef typename K::Comparison_result result_type; + typedef Arity_tag< 4 > Arity; + + result_type + operator()(const Point_3& p, const Point_3& q, const Point_3& r, const Point_3& s, const FT& ft) const + { + return CGAL_NTS compare(squared_radiusC3(p.x(), p.y(), p.z(), + q.x(), q.y(), q.z(), + r.x(), r.y(), r.z(), + s.x(), s.y(), s.z() ), + ft); + } + + result_type + operator()(const Point_3& p, const Point_3& q, const Point_3& r, const FT& ft) const + { + return CGAL_NTS compare(squared_radiusC3(p.x(), p.y(), p.z(), + q.x(), q.y(), q.z(), + r.x(), r.y(), r.z()), + ft); + } + + result_type + operator()(const Point_3& p, const Point_3& q, const FT& ft) const + { + return CGAL_NTS compare(squared_radiusC3(p.x(), p.y(), p.z(), + q.x(), q.y(), q.z() ), + ft); + } + }; + + + template class Compare_slope_2 {