#include <sphere3.h>
Inheritance diagram for TSphere3< T >:
Public Member Functions | |
Constructors and Destructors | |
TSphere3 () throw () | |
Default constructor. | |
TSphere3 (const TSphere3 &sphere) throw () | |
Copy constructor. | |
TSphere3 (const TVector3< T > &point, const T &radius) throw () | |
Detailed constructor. | |
virtual | ~TSphere3 () throw () |
Destructor. | |
virtual void | clear () throw () |
Default initialisation. | |
Assignment | |
void | swap (TSphere3 &sphere) throw () |
Swap the contents of two instances of Sphere3. | |
void | set (const TSphere3 &sphere) throw () |
Assign from another instance of Sphere3. | |
void | set (const TVector3< T > &point, const T &r) throw () |
Assign from a point and a radius. | |
TSphere3 & | operator= (const TSphere3 &sphere) throw () |
Assignment operator. | |
void | get (TSphere3 &sphere) const throw () |
Assign to another instance of Sphere. | |
void | get (TVector3< T > &point, T &r) const throw () |
Assign to an instance of Vector3 and a variable of type T . | |
Predicates | |
bool | operator== (const TSphere3 &sphere) const throw () |
Equality operator. | |
bool | operator!= (const TSphere3 &sphere) const throw () |
Inequality operator. | |
bool | has (const TVector3< T > &point, bool on_surface=false) const throw () |
Test whether a given point is a member of the Sphere. | |
bool | isEmpty () const throw () |
Test whether the Sphere is empty (radius = 0). | |
Debugging and Diagnostics | |
bool | isValid () const throw () |
Test whether instance is valid. | |
void | dump (std::ostream &s=std::cout, Size depth=0) const throw () |
Internal state dump. | |
Public Attributes | |
Attributes | |
TVector3< T > | p |
The midpoint of the sphere. | |
T | radius |
The radius of the sphere. |
|
Default constructor.
This method creates a new TSphere3 object. The three components are initialized to |
|
Copy constructor. Create a new Sphere3 object from another.
|
|
Detailed constructor. Create a new Sphere3 object from a point and a radius.
|
|
Destructor. As there are no dynamic data structures, nothing happens. |
|
Internal state dump. Dump the current internal state of {*this} to the output ostream s with dumping depth depth .
Reimplemented in VIEW::Sphere. |
|
Assign to an instance of Vector3 and a variable of type
|
|
Assign to another instance of Sphere. Assigns the components to another Sphere.
|
|
Test whether a given point is a member of the Sphere. Optional it can be testet, if the point lies on the surface.
|
|
Test whether the Sphere is empty (radius = 0).
|
|
Test whether instance is valid. Always returns true
Reimplemented in VIEW::Sphere. |
|
Inequality operator.
|
|
Assignment operator. Assign the components from another instance of Sphere.
|
|
Equality operator.
|
|
Assign from a point and a radius.
|
|
Assign from another instance of Sphere3.
|
|
Swap the contents of two instances of Sphere3.
|
|
The midpoint of the sphere.
|
|
The radius of the sphere.
|