![]() |
UtilsLite
Utilities for C++ programming
|
A class representing a 2D axis-aligned bounding box. More...
#include <Utils_GG2D.hh>
Public Member Functions | |
Box2D () | |
Default constructor for the bounding box. | |
A class representing a 2D axis-aligned bounding box.
The Box2D
class defines a 2D axis-aligned bounding box using two points, \( P_{\text{min}} \) and \( P_{\text{max}} \), which represent the minimum and maximum corners of the box respectively. This class provides a structure to represent and manipulate a bounding box in a two-dimensional space.
Real | The data type used for the coordinates of the box's corners, typically a floating-point type (e.g., float, double). |
|
inline |
Default constructor for the bounding box.
Initializes a new bounding box. The minimum and maximum points are uninitialized. This constructor can be used to create an empty box which can later be defined using specific points.