#include <sphere3.h>
Public Types | |
| typedef T | ScalarType |
Public Member Functions | |
| void | Add (const Point3< T > &p) |
| void | Add (const Sphere3 &sphere) |
| Point3< T > & | Center () |
| const Point3< T > & | Center () const |
| int | CreateFromBox (int n, const Point3< T > *points) |
| int | CreateTight (int n, const Point3< T > *points, T threshold=1.01, T speed=0.6) |
| int | CreateTight (const std::vector< Point3< T > > &points, T threshold=1.01, T speed=0.6) |
| void | Intersect (const Sphere3 &sphere) |
| bool | IsEmpty () const |
| bool | IsIn (const Point3< T > &p) const |
| return true if | |
| bool | IsIn (const Sphere3< T > &p) const |
| T & | Radius () |
| const T & | Radius () const |
| Sphere3 () | |
| Sphere3 (const Point3< T > ¢er, T radius) | |
Protected Attributes | |
| Point3< T > | _center |
| T | _radius |
Templated class for 3D sphere. This is the class for definition of a sphere in 3D space. It is stored just as a Point3 and a radius
| T | (template parameter) Specifies the type of scalar used to represent coords. Various policy could be added to improve efficience (keeping square of radius for instance). |