Rectangular box in real space.
More...
#include <CD_RealBox.H>
|
| RealBox () |
| Default constructor. Must subsequently set the corners.
|
|
| RealBox (const RealVect a_lo, const RealVect a_hi) |
| Full constructor. Sets corners from input arguments. More...
|
|
| RealBox (const Box a_box, const RealVect a_probLo, const Real a_dx) |
| Full constructor. Sets corners from input box. More...
|
|
| ~RealBox () |
| Destructor (does nothing)
|
|
RealVect | getLo () const |
| Get low corner.
|
|
RealVect | getHi () const |
| Get high corner.
|
|
Vector< RealVect > | getCorners () const |
| Get all the corners of this box (4 in 2D, 8 in 3D);.
|
|
bool | intersect (const RealBox &a_box) const |
| Check if a_box intersects this box. This is done by checking if. More...
|
|
bool | isPointInside (const RealVect a_point) const |
| Check if a_point is inside this box. More...
|
|
bool | isBoxInside (const RealBox &a_box) const |
| Check if a_box is completely inside this box. For this to be true, all the corners of a_box must be completely inside this box. More...
|
|
|
RealVect | m_lo |
| Low corner.
|
|
RealVect | m_hi |
| High corner.
|
|
Rectangular box in real space.
◆ RealBox() [1/2]
RealBox::RealBox |
( |
const RealVect |
a_lo, |
|
|
const RealVect |
a_hi |
|
) |
| |
Full constructor. Sets corners from input arguments.
- Parameters
-
[in] | a_lo | Low corner |
[in] | a_hi | High corners |
◆ RealBox() [2/2]
RealBox::RealBox |
( |
const Box |
a_box, |
|
|
const RealVect |
a_probLo, |
|
|
const Real |
a_dx |
|
) |
| |
Full constructor. Sets corners from input box.
- Parameters
-
[in] | a_box | IntVect-box |
[in] | a_probLo | Lower-left corner of physical domain |
[in] | a_dx | Grid resolution. |
This sets the low corner as a_probLo + a_box.lowEnd()*a_dx
◆ intersect()
bool RealBox::intersect |
( |
const RealBox & |
a_box | ) |
const |
Check if a_box intersects this box. This is done by checking if.
- Parameters
-
◆ isBoxInside()
bool RealBox::isBoxInside |
( |
const RealBox & |
a_box | ) |
const |
Check if a_box is completely inside this box. For this to be true, all the corners of a_box must be completely inside this box.
- Parameters
-
◆ isPointInside()
bool RealBox::isPointInside |
( |
const RealVect |
a_point | ) |
const |
Check if a_point is inside this box.
- Parameters
-
The documentation for this class was generated from the following files: