An oriented bounding box represents a bounding box that has been transformed by a transformation matrix. More...
#include <kanzi/core/math/oriented_bounding_box.hpp>
Public Types | |
enum | CornerIndex { BackBottomLeft , BackTopLeft , BackTopRight , BackBottomRight , FrontBottomLeft , FrontTopLeft , FrontTopRight , FrontBottomRight } |
Indices for accessing corners with the getCornerPoint function. More... | |
Public Member Functions | |
Vector3 | getCornerPoint (size_t index) const |
Gets a corner pointer of the oriented bounding box. | |
OrientedBoundingBox (const Matrix4x4 &transformation, const Box &aabb) | |
Creates an oriented bounding box from an axis-aligned bounding box. | |
An oriented bounding box represents a bounding box that has been transformed by a transformation matrix.
It stores the transformed (world space) corner points of a bounding box.
Indices for accessing corners with the getCornerPoint function.
|
explicit |
Creates an oriented bounding box from an axis-aligned bounding box.
transformation | The transformation matrix. |
aabb | The axis-aligned bounding box. |
|
inline |
Gets a corner pointer of the oriented bounding box.
index | Index of the corner. |