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. More... | |
int | getMaxDim () const |
Return the index of the largest Cartesian dimension: 0 for x, 1 for y and 2 for z. More... | |
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. More... | |
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().
|
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 Vector3D::dist(), hi, and lo.
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 clusterShells(), ShellTree::init(), Stream::saveAtomsRecursively(), and ActiveBfShells::setForBox().
References getDistanceTo().
Referenced by Stream::saveAtomsRecursively().
|
inline |
Referenced by Stream::saveAtomsRecursively(), and ActiveBfShells::setForBox().
real Box::hi[3] |
real Box::lo[3] |