Main Page | Class Hierarchy | Class List | File List | Class Members

Sphere Class Reference

#include <sphere.h>

Inheritance diagram for Sphere:

Geometry List of all members.

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)

Detailed Description

A sphere.

Author:
Moritz Franosch


Constructor & Destructor Documentation

Sphere::Sphere const Particle::vector_t &  p,
const double  r
 

Constructs a sphere with p and radius r.


Member Function Documentation

const Particle::vector_t & Sphere::get_position  )  const
 

Returns the position of the sphere.

double Sphere::get_radius  )  const
 

Returns the radius of the sphere.

bool Sphere::operator() const Particle::vector_t &  p  )  const [virtual]
 

True if position p is inside the object.

Implements Geometry.

void Sphere::set_radius const double  r  ) 
 

Sets the radius of the spere.

void Sphere::to_xml std::ostream &  o  )  [virtual]
 

Writes the sphere as XML into o.

Implements Geometry.


The documentation for this class was generated from the following files:
Generated on Fri Apr 22 11:06:49 2005 for partsim.kdevelop by doxygen 1.3.6