BALL
1.4.1
|
#include <BALL/MATHS/sphere3.h>
Public Member Functions | |
Constructors and Destructors | |
TSphere3 () | |
TSphere3 (const TSphere3 &sphere) | |
TSphere3 (const TVector3< T > &point, const T &radius) | |
virtual | ~TSphere3 () |
virtual void | clear () |
Assignment | |
void | swap (TSphere3 &sphere) |
void | set (const TSphere3 &sphere) |
void | set (const TVector3< T > &point, const T &r) |
TSphere3 & | operator= (const TSphere3 &sphere) |
void | get (TSphere3 &sphere) const |
void | get (TVector3< T > &point, T &r) const |
Predicates | |
bool | operator== (const TSphere3 &sphere) const |
bool | operator!= (const TSphere3 &sphere) const |
bool | has (const TVector3< T > &point, bool on_surface=false) const |
bool | isEmpty () const |
Debugging and Diagnostics | |
bool | isValid () const |
void | dump (std::ostream &s=std::cout, Size depth=0) const |
Public Attributes | |
Attributes | |
TVector3< T > | p |
T | radius |
Generic Sphere Class.
BALL::TSphere3< T >::TSphere3 | ( | ) | [inline] |
BALL::TSphere3< T >::TSphere3 | ( | const TSphere3< T > & | sphere | ) | [inline] |
BALL::TSphere3< T >::TSphere3 | ( | const TVector3< T > & | point, |
const T & | radius | ||
) | [inline] |
virtual BALL::TSphere3< T >::~TSphere3 | ( | ) | [inline, virtual] |
virtual void BALL::TSphere3< T >::clear | ( | ) | [inline, virtual] |
Default initialisation
Reimplemented in BALL::VIEW::Sphere.
void BALL::TSphere3< T >::dump | ( | std::ostream & | s = std::cout , |
Size | depth = 0 |
||
) | const [inline] |
Internal state dump. Dump the current internal state of {*this} to the output ostream s with dumping depth depth .
s | - output stream where to output the internal state of {*this} |
depth | - the dumping depth |
Reimplemented in BALL::VIEW::Sphere.
void BALL::TSphere3< T >::get | ( | TSphere3< T > & | sphere | ) | const [inline] |
void BALL::TSphere3< T >::get | ( | TVector3< T > & | point, |
T & | r | ||
) | const [inline] |
bool BALL::TSphere3< T >::has | ( | const TVector3< T > & | point, |
bool | on_surface = false |
||
) | const [inline] |
bool BALL::TSphere3< T >::isEmpty | ( | ) | const [inline] |
bool BALL::TSphere3< T >::isValid | ( | ) | const [inline] |
Test whether instance is valid. Always returns true
Reimplemented in BALL::VIEW::Sphere.
bool BALL::TSphere3< T >::operator!= | ( | const TSphere3< T > & | sphere | ) | const [inline] |
TSphere3& BALL::TSphere3< T >::operator= | ( | const TSphere3< T > & | sphere | ) | [inline] |
bool BALL::TSphere3< T >::operator== | ( | const TSphere3< T > & | sphere | ) | const [inline] |
void BALL::TSphere3< T >::set | ( | const TSphere3< T > & | sphere | ) | [inline] |
void BALL::TSphere3< T >::set | ( | const TVector3< T > & | point, |
const T & | r | ||
) | [inline] |
void BALL::TSphere3< T >::swap | ( | TSphere3< T > & | sphere | ) | [inline] |
TVector3<T> BALL::TSphere3< T >::p |
T BALL::TSphere3< T >::radius |