The Dirtchamber
A mixed reality testing environment for real-time global illumination algorithms
|
An axis-aligned bounding-box. More...
#include <mesh.h>
Public Member Functions | |
V | center () const |
Returns the center of the bounding-box. | |
V | bb_max () const |
Returns the maximum (upper/right/back) of the bounding-box. | |
V | bb_min () const |
Returns the minimum (lower/left/front) of the bounding-box. | |
virtual void | set_world (const DirectX::XMFLOAT4X4 &world) |
Update the world matrix of this mesh. | |
const DirectX::XMFLOAT4X4 & | world () |
Returns the current world matrix of this mesh. | |
Protected Member Functions | |
void | init_bb (const V &p) |
Initialize the bounding-box with a first point. More... | |
void | update_bb (const V &p) |
Update the bounding-box with a new point. More... | |
An axis-aligned bounding-box.
This class represents an axis-aligned bounding-box.
|
inlineprotected |
Initialize the bounding-box with a first point.
Before using the bounding box, it must first be intialized with a single point.
p | The first point of a larger structure. |
|
inlineprotected |
Update the bounding-box with a new point.
Updates the bounding-box with an additional point and recalculates its maximum and minimum extents.
p | A new point. |