ergo
|
Class Box provides an ability to determine box containing all Objects. More...
#include <dft_common.h>
Public Member Functions | |
real | getDistanceTo (const real *v) const |
Returns the shortest distance of the border of the box to the specified point in space. | |
int | getMaxDim () const |
Return the index of the largest Cartesian dimension: 0 for x, 1 for y and 2 for z. | |
real | size (int dim) const |
bool | overlapsWith (const real *center, real radius) const |
bool | contains (const real *p) const |
Determines whether given point is inside the box. | |
Public Attributes | |
real | lo [3] |
real | hi [3] |
Class Box provides an ability to determine box containing all Objects.
The class Object must provide field center[] and method radius().
bool Box::contains | ( | const real * | p | ) | const [inline] |
Determines whether given point is inside the box.
In order to avoid double counting, the points that are overlap with the lower limits are included but those that overlap with the higher limit are excluded.
Referenced by Stream::saveAtomGridInBox().
Returns the shortest distance of the border of the box to the specified point in space.
References lo, hi, and Vector3D::dist().
Referenced by overlapsWith(), and Stream::saveAtomGridInBox().
int Box::getMaxDim | ( | ) | const |
Return the index of the largest Cartesian dimension: 0 for x, 1 for y and 2 for z.
Referenced by ShellTree::init(), ActiveBfShells::setForBox(), Stream::saveAtomsRecursively(), and clusterShells().
References getDistanceTo().
Referenced by Stream::saveAtomsRecursively().
real Box::size | ( | int | dim | ) | const [inline] |
Referenced by ActiveBfShells::setForBox(), and Stream::saveAtomsRecursively().