The Dirtchamber
A mixed reality testing environment for real-time global illumination algorithms
Public Member Functions | Protected Member Functions | List of all members
dune::aabb< V > Struct Template Reference

An axis-aligned bounding-box. More...

#include <mesh.h>

Inheritance diagram for dune::aabb< V >:
dune::mesh< V >

Public Member Functions

center () const
 Returns the center of the bounding-box.
 
bb_max () const
 Returns the maximum (upper/right/back) of the bounding-box.
 
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...
 

Detailed Description

template<typename V>
struct dune::aabb< V >

An axis-aligned bounding-box.

This class represents an axis-aligned bounding-box.

Member Function Documentation

template<typename V>
void dune::aabb< V >::init_bb ( const V &  p)
inlineprotected

Initialize the bounding-box with a first point.

Before using the bounding box, it must first be intialized with a single point.

Parameters
pThe first point of a larger structure.
template<typename V>
void dune::aabb< V >::update_bb ( const V &  p)
inlineprotected

Update the bounding-box with a new point.

Updates the bounding-box with an additional point and recalculates its maximum and minimum extents.

Parameters
pA new point.

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