A concrete object that provides the functionality for representing a bounding box geometric primitive and associated operations such as bounding box intersection. More...
#include <BoundingBox.hpp>
Public Member Functions | |
| void | setCoordinates (const double x, const double y, const double z, const double X, const double Y, const double Z) |
| Sets the coordinates of this BoundingBox instance. More... | |
| BoundingBox () | |
| Default Constructor. More... | |
| BoundingBox (const double x, const double y, const double z, const double X, const double Y, const double Z) | |
| Custom Constructor. More... | |
| ~BoundingBox () | |
| Destructor. More... | |
| double | getMinX () |
| double | getMinY () |
| double | getMinZ () |
| double | getMaxX () |
| double | getMaxY () |
| double | getMaxZ () |
| bool | hasPoint (const double x, const double y, const double z) |
| Determines if a point is inside the bounding box. More... | |
Static Public Member Functions | |
| static BoundingBox | intersection (BoundingBox &b1, BoundingBox &b2) |
| Computes the bounding box intersection between bounding box b1,b2. More... | |
| static size_t | Size () |
| Same as BoundingBox::getBytesize( ) but does not require a BoundingBox instance to be allocated. More... | |
Protected Attributes | |
| double | max [3] |
| double | min [3] |
A concrete object that provides the functionality for representing a bounding box geometric primitive and associated operations such as bounding box intersection.
Definition at line 21 of file BoundingBox.hpp.
|
inline |
Default Constructor.
Constructs a 1x1x1 cube
Definition at line 116 of file BoundingBox.hpp.
Referenced by intersection().

|
inline |
Custom Constructor.
| x | min x of the bounding box |
| y | min y of the bounding box |
| z | min z of the bounding box |
| X | max x of the bounding box |
| Y | max y of the bounding box |
| Z | max z of the bounding box |
Definition at line 135 of file BoundingBox.hpp.
|
inline |
|
inline |
Definition at line 167 of file BoundingBox.hpp.
Referenced by hasPoint(), and intersection().

|
inline |
Definition at line 172 of file BoundingBox.hpp.
Referenced by hasPoint(), and intersection().

|
inline |
Definition at line 177 of file BoundingBox.hpp.
Referenced by hasPoint(), and intersection().

|
inline |
Definition at line 152 of file BoundingBox.hpp.
Referenced by hasPoint(), and intersection().

|
inline |
Definition at line 157 of file BoundingBox.hpp.
Referenced by hasPoint(), and intersection().

|
inline |
Definition at line 162 of file BoundingBox.hpp.
Referenced by hasPoint(), and intersection().

|
inline |
Determines if a point is inside the bounding box.
| x | the x-coordinate of the point in query. |
| y | the y-coordinate of the point in query. |
| z | the z-coordinate of the point in query. |
Definition at line 187 of file BoundingBox.hpp.
References Numerics::fpointequals(), getMaxX(), getMaxY(), getMaxZ(), getMinX(), getMinY(), and getMinZ().

|
inlinestatic |
Computes the bounding box intersection between bounding box b1,b2.
| b1 | the bounding box instance to intersect with bounding box b2. |
| b2 | the bounding box instance to intersect with bounding box b1. |
Definition at line 36 of file BoundingBox.hpp.
References BoundingBox(), getMaxX(), getMaxY(), getMaxZ(), getMinX(), getMinY(), getMinZ(), max, and min.

|
inline |
Sets the coordinates of this BoundingBox instance.
| x | min x of the bounding box |
| y | min y of the bounding box |
| z | min z of the bounding box |
| X | max x of the bounding box |
| Y | max y of the bounding box |
| Z | max z of the bounding box |
Definition at line 101 of file BoundingBox.hpp.
Referenced by ComSwitch::parseValuesFromArguments().

|
inlinestatic |
Same as BoundingBox::getBytesize( ) but does not require a BoundingBox instance to be allocated.
Definition at line 87 of file BoundingBox.hpp.
|
protected |
Definition at line 24 of file BoundingBox.hpp.
Referenced by intersection().
|
protected |
Definition at line 25 of file BoundingBox.hpp.
Referenced by intersection().