|
AeonGUI
A portable video game graphic user interface library.
|
Axis-Aligned Bounding Box. More...
#include <aeongui/AABB.hpp>
Public Member Functions | |
| AABB () | |
| Default constructor. Initializes center and radii to zero. | |
| AABB (const Vector2 &aCenter, const Vector2 &aRadii) | |
| Construct an AABB from a center point and radii. | |
| const Vector2 & | GetCenter () const |
| Get the center of the bounding box. | |
| const Vector2 & | GetRadii () const |
| Get the radii (half-extents) of the bounding box. | |
| double | GetX () const |
| Get the X coordinate of the top-left corner. | |
| double | GetY () const |
| Get the Y coordinate of the top-left corner. | |
| double | GetWidth () const |
| Get the width of the bounding box. | |
| double | GetHeight () const |
| Get the height of the bounding box. | |
Axis-Aligned Bounding Box.
Represents a 2D axis-aligned bounding box defined by a center point and radii (half-extents).
Construct an AABB from a center point and radii.
| aCenter | The center of the bounding box. |
| aRadii | The half-extents (radii) along each axis. |
| const Vector2 & AeonGUI::AABB::GetCenter | ( | ) | const |
Get the center of the bounding box.
| double AeonGUI::AABB::GetHeight | ( | ) | const |
Get the height of the bounding box.
| const Vector2 & AeonGUI::AABB::GetRadii | ( | ) | const |
Get the radii (half-extents) of the bounding box.
| double AeonGUI::AABB::GetWidth | ( | ) | const |
Get the width of the bounding box.
| double AeonGUI::AABB::GetX | ( | ) | const |
Get the X coordinate of the top-left corner.
| double AeonGUI::AABB::GetY | ( | ) | const |
Get the Y coordinate of the top-left corner.