molecular
|
Axis aligned (bounding) box (AABB) More...
#include <AxisAlignedBox.h>
Classes | |
struct | LineIntersectionResult |
Public Member Functions | |
AxisAlignedBox () | |
Construct infinite box. More... | |
AxisAlignedBox (const Vector3 &min, const Vector3 &max) | |
AxisAlignedBox (float minX, float minY, float minZ, float maxX, float maxY, float maxZ) | |
bool | Contains (const Vector3 &point) const |
double | Volume () const |
Calculates volume of this box. More... | |
bool | Encloses (const AxisAlignedBox &box) const |
Returns true if the second box is fully contained inside this box. More... | |
bool | Overlaps (const AxisAlignedBox &box) const |
Returns true if the two boxes intersect. More... | |
double | Overlap (const AxisAlignedBox &box) const |
Calculates the volume of the intersection of the two boxes. More... | |
Vector3 | Center () const |
void | Stretch (const AxisAlignedBox &box) |
Extends this box so it encloses the other. More... | |
void | Stretch (const Vector3 &vec) |
bool | IsNull () const |
const Vector3 & | GetMin () const |
const Vector3 & | GetMax () const |
float | GetMin (int i) const |
float | GetMax (int i) const |
float | GetSize (int i) const |
Vector3 | GetSize () const |
Vector3 | GetCenter () const |
LineIntersectionResult | LineIntersection (const Vector3 &lineStart, const Vector3 &lineEnd) |
Static Public Attributes | |
static const AxisAlignedBox | kDefault = AxisAlignedBox() |
Axis aligned (bounding) box (AABB)
|
inline |
Construct infinite box.
|
inline |
|
inline |
|
inline |
|
inline |
Returns true if the second box is fully contained inside this box.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
AxisAlignedBox::LineIntersectionResult molecular::util::AxisAlignedBox::LineIntersection | ( | const Vector3 & | lineStart, |
const Vector3 & | lineEnd | ||
) |
|
inline |
Calculates the volume of the intersection of the two boxes.
|
inline |
Returns true if the two boxes intersect.
|
inline |
Extends this box so it encloses the other.
|
inline |
|
inline |
Calculates volume of this box.
|
static |