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

Box Class Reference

#include <box.h>

Inheritance diagram for Box:

Geometry Voxel List of all members.

Public Member Functions

 Box (const Particle::vector_t &p1, const Particle::vector_t &p2)
virtual bool operator() (const Particle::vector_t &p) const
const Particle::vector_t & get_corner1 () const
const Particle::vector_t & get_corner2 () const
virtual void to_xml (std::ostream &o)

Detailed Description

A box.

Author:
Moritz Franosch


Constructor & Destructor Documentation

Box::Box const Particle::vector_t &  p1,
const Particle::vector_t &  p2
 

Constructs a box with corners p1 and p2.


Member Function Documentation

const Particle::vector_t & Box::get_corner1  )  const
 

Returns a corner.

const Particle::vector_t & Box::get_corner2  )  const
 

Returns the opposite corner.

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

True if position p is inside of the box.

Implements Geometry.

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

Writes the box as XML into o.

Implements Geometry.

Reimplemented in Voxel.


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