#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] |
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.
Returns the shortest distance of the border of the box to the specified point in space.
int Box::getMaxDim | ( | ) | const |
Return the index of the largest Cartesian dimension: 0 for x, 1 for y and 2 for z.
real Box::size | ( | int | dim | ) | const [inline] |