vcg::Sphere3< T > Class Template Reference
[Space]

#include <sphere3.h>

List of all members.

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 TRadius () const
TRadius ()
 Sphere3 (const Point3< T > &center, T radius)
 Sphere3 ()

Protected Attributes

Point3< T_center
T _radius

Detailed Description

template<class T>
class vcg::Sphere3< T >

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

Parameters:
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.


Member Data Documentation

template<class T>
Point3<T> vcg::Sphere3< T >::_center [protected]

Definition at line 77 of file sphere3.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:23:06 2013