#include <sphere.h>
Inheritance diagram for Sphere:
Public Member Functions | |
Sphere (const Particle::vector_t &p, const double r) | |
void | set_radius (const double r) |
const Particle::vector_t & | get_position () const |
double | get_radius () const |
virtual bool | operator() (const Particle::vector_t &p) const |
virtual void | to_xml (std::ostream &o) |
|
Constructs a sphere with p and radius r. |
|
Returns the position of the sphere. |
|
Returns the radius of the sphere. |
|
True if position p is inside the object. Implements Geometry. |
|
Sets the radius of the spere. |
|
Writes the sphere as XML into o. Implements Geometry. |