#include <box.h>
Inheritance diagram for Box:
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) |
|
Constructs a box with corners p1 and p2. |
|
Returns a corner. |
|
Returns the opposite corner. |
|
True if position p is inside of the box. Implements Geometry. |
|
Writes the box as XML into o. Implements Geometry. Reimplemented in Voxel. |