#include <sphere3.h>
Public Types | |
typedef T | ScalarType |
Public Member Functions | |
void | Add (const Sphere3 &sphere) |
void | Add (const Point3< T > &p) |
const Point3< T > & | Center () const |
Point3< T > & | Center () |
int | CreateFromBox (int n, const Point3< T > *points) |
int | CreateTight (const std::vector< Point3< T > > &points, T threshold=1.01, T speed=0.6) |
int | CreateTight (int n, const Point3< T > *points, T threshold=1.01, T speed=0.6) |
void | Intersect (const Sphere3 &sphere) |
bool | IsEmpty () const |
bool | IsIn (const Sphere3< T > &p) const |
bool | IsIn (const Point3< T > &p) const |
return true if | |
const T & | Radius () const |
T & | Radius () |
Sphere3 (const Point3< T > ¢er, T radius) | |
Sphere3 () | |
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). |
Definition at line 75 of file sphere3.h.
Point3<T> vcg::Sphere3< T >::_center [protected] |