vmmlib  1.7.0
 All Classes Namespaces Functions Pages
vmml::AxisAlignedBoundingBox< T > Class Template Reference
+ Collaboration diagram for vmml::AxisAlignedBoundingBox< T >:

Public Member Functions

 AxisAlignedBoundingBox (const vector< 3, T > &pMin, const vector< 3, T > &pMax)
 
 AxisAlignedBoundingBox (const vector< 4, T > &sphere)
 
 AxisAlignedBoundingBox (T cx, T cy, T cz, T size)
 
bool isIn (const vector< 3, T > &pos)
 
bool isIn2d (const vector< 3, T > &pos)
 
bool isIn (const vector< 4, T > &sphere)
 
void set (const vector< 3, T > &pMin, const vector< 3, T > &pMax)
 
void set (T cx, T cy, T cz, T size)
 
void setMin (const vector< 3, T > &pMin)
 
void setMax (const vector< 3, T > &pMax)
 
const vector< 3, T > & getMin () const
 
const vector< 3, T > & getMax () const
 
void merge (const AxisAlignedBoundingBox< T > &aabb)
 
void merge (const vector< 3, T > &point)
 
void setEmpty (bool empty=true)
 
bool isEmpty () const
 
void setDirty (bool dirty=true)
 
bool isDirty () const
 
vector< 3, T > getCenter () const
 
vector< 3, T > getDimension () const
 

Protected Attributes

vector< 3, T > _min
 
vector< 3, T > _max
 
bool _dirty
 
bool _empty
 

Detailed Description

template<typename T>
class vmml::AxisAlignedBoundingBox< T >

Definition at line 41 of file aabb.hpp.


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