UtilsLite
Utilities for C++ programming
Loading...
Searching...
No Matches
Utils::Box2D< Real > Class Template Reference

A class representing a 2D axis-aligned bounding box. More...

#include <Utils_GG2D.hh>

Public Member Functions

 Box2D ()
 Default constructor for the bounding box.
 

Detailed Description

template<typename Real>
class Utils::Box2D< Real >

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.

Template Parameters
RealThe data type used for the coordinates of the box's corners, typically a floating-point type (e.g., float, double).

Constructor & Destructor Documentation

◆ Box2D()

template<typename Real>
Utils::Box2D< Real >::Box2D ( )
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.


The documentation for this class was generated from the following file: