From 7537bdbeab81eabccdfbc19db41454e87dba5971 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Wed, 24 Jun 2009 16:26:17 +0000 Subject: [PATCH] add documented has_on for point and circle on a sphere --- Kernel_23/include/CGAL/Sphere_3.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Kernel_23/include/CGAL/Sphere_3.h b/Kernel_23/include/CGAL/Sphere_3.h index b5e50220981..a14359bb6ee 100644 --- a/Kernel_23/include/CGAL/Sphere_3.h +++ b/Kernel_23/include/CGAL/Sphere_3.h @@ -129,6 +129,20 @@ public: return R().oriented_side_3_object()(*this, p); } + typename R::Boolean + has_on(const Point_3 &p) const + { + return R().has_on_3_object()(*this, p); + //return bounded_side(p) == ON_BOUNDARY; + } + + typename R::Boolean + has_on(const Circle_3 &c) const + { + return R().has_on_3_object()(*this, c); + //return bounded_side(p) == ON_BOUNDARY; + } + typename R::Boolean has_on_boundary(const Point_3 &p) const {