From 4b10227f1ff1168a2dde48c622a399c6851aad62 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Mon, 24 Aug 2009 15:00:14 +0000 Subject: [PATCH] Add operator to Compare_squared_distance_3 --- .../include/CGAL/Homogeneous/function_objects.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Homogeneous_kernel/include/CGAL/Homogeneous/function_objects.h b/Homogeneous_kernel/include/CGAL/Homogeneous/function_objects.h index f4222bebe44..b05726029fa 100644 --- a/Homogeneous_kernel/include/CGAL/Homogeneous/function_objects.h +++ b/Homogeneous_kernel/include/CGAL/Homogeneous/function_objects.h @@ -715,6 +715,12 @@ namespace HomogeneousKernelFunctors { { return CGAL_NTS compare(squared_distance(p, q), d2); } + + result_type + operator()(const Point_3& p, const Point_3& q, const Point_3& r, const Point_3& s) const + { + return CGAL_NTS compare(squared_distance(p, q), squared_distance(r, s)); + } }; template