17#ifndef AEONGAMES_AABB_H
18#define AEONGAMES_AABB_H
63 DLL std::array<Vector3, 8>
GetPoints (
const Vector3& aOffset = { 0.0f, 0.0f, 0.0f, } )
const;
Header for the 3D vector class.
Axis Aligned Bounding Box class.
DLL AABB & operator+=(const AABB &lhs)
Expand this AABB to enclose another AABB.
DLL void SetRadii(const Vector3 &aRadii)
Set the radii (half-extents) of the AABB.
DLL AABB()
Default constructor.
DLL Transform GetTransform() const
Get the AABB as a transform, the AABB center becomes translation and the radii becomes scale.
DLL float GetDistanceToPlane(const Plane &aPlane) const
Returns the shortest distance from any point in the plane's surface to the support point of the AABB ...
DLL std::array< Vector3, 8 > GetPoints(const Vector3 &aOffset={ 0.0f, 0.0f, 0.0f, }) const
Get the eight corner points of the AABB.
DLL const Vector3 & GetRadii() const
Get the radii (half-extents) of the AABB.
DLL const Vector3 & GetCenter() const
Get the center position of the AABB.
DLL void SetCenter(const Vector3 &aCenter)
Set the center position of the AABB.
<- This is here just for the literals