summaryrefslogtreecommitdiffstats
path: root/src/BoundingBox.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/BoundingBox.h')
-rw-r--r--src/BoundingBox.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/BoundingBox.h b/src/BoundingBox.h
index 809b7fe7c..c71c42d1a 100644
--- a/src/BoundingBox.h
+++ b/src/BoundingBox.h
@@ -26,6 +26,10 @@ public:
cBoundingBox(double a_MinX, double a_MaxX, double a_MinY, double a_MaxY, double a_MinZ, double a_MaxZ);
cBoundingBox(Vector3d a_Min, Vector3d a_Max);
cBoundingBox(Vector3d a_Pos, double a_Radius, double a_Height);
+ /** Constructor that allows to define a bounding box given a center point (a_Pos), a horizontal radius (a_Radius),
+ a height starting from given center point (a_Height) and a vertical offset (a_VerticalOffset) to adjust the vertical starting point.
+ For example: cBoundingBox([0, 0, 0], 6, 6, -3) would create a bounding cube from (-3, -3, -3) to (3, 3, 3). */
+ cBoundingBox(Vector3d a_Pos, double a_Radius, double a_Height, double a_VerticalOffset);
cBoundingBox(Vector3d a_Pos, double a_CubeLength);
cBoundingBox(const cBoundingBox & a_Orig);