From b7a90932658269065e77d598e462f6b4e526131d Mon Sep 17 00:00:00 2001 From: ponchio Date: Fri, 2 Apr 2004 09:44:13 +0000 Subject: [PATCH] Sphere ->Sphere3 --- vcg/space/sphere3.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/vcg/space/sphere3.h b/vcg/space/sphere3.h index fc48a833..010790d4 100644 --- a/vcg/space/sphere3.h +++ b/vcg/space/sphere3.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.2 2004/03/25 17:25:46 ponchio +#include sbagliato. + Revision 1.1 2004/03/21 17:51:57 ponchio First version. @@ -46,7 +49,7 @@ Templated class for 3D sphere. Various policy could be added to improve efficience (keeping square of radius for instance). */ -template class Sphere { +template class Sphere3 { protected: Point3 _center; T _radius; @@ -64,10 +67,13 @@ public: bool IsIn(const Point3 &p) const; void Add(Point3 &p); - void Add(const Sphere &sphere); + void Add(const Sphere3 &sphere); }; +typedef Sphere3 Sphere3f; +typedef Sphere3 Sphere3d; + template void Sphere::Add(const Sphere &sphere) { if(IsEmpty()) { *this = sphere; @@ -107,4 +113,4 @@ template bool Sphere::IsIn(const Point3 &p) const { } //namespace -#endif \ No newline at end of file +#endif