igor::iAABox< T > Class Template Reference

#include <iAABox.h>

Public Member Functions

 iAABox ()=default
 
 iAABox (const iaVector3< T > &center, const iaVector3< T > &halfWidths)
 
void setMinMax (const iaVector3< T > &min, const iaVector3< T > &max)
 
void getMinMax (iaVector3< T > &min, iaVector3< T > &max)
 

Static Public Member Functions

static iAABox< T > fromMinMax (const iaVector3< T > &min, const iaVector3< T > &max)
 

Public Attributes

iaVector3< T > _center
 
iaVector3< T > _halfWidths
 

Detailed Description

template<class T>
class igor::iAABox< T >

Axis aligned box

Constructor & Destructor Documentation

◆ iAABox() [1/2]

template<class T >
igor::iAABox< T >::iAABox ( )
default

does nothing

◆ iAABox() [2/2]

template<class T >
iAABox::iAABox ( const iaVector3< T > &  center,
const iaVector3< T > &  halfWidths 
)

init members constructor

Parameters
centercenter of box
halfWidthshalfWidths of box in all axis

Member Function Documentation

◆ fromMinMax()

template<class T >
iAABox< T > iAABox::fromMinMax ( const iaVector3< T > &  min,
const iaVector3< T > &  max 
)
static

creates iAABox from min max values

Parameters
minmin vector for aa box
maxmax vector for aa box

◆ getMinMax()

template<class T >
void iAABox::getMinMax ( iaVector3< T > &  min,
iaVector3< T > &  max 
)

returns min, max values

Parameters
[out]minthe min value
[out]maxthe max value

◆ setMinMax()

template<class T >
void iAABox::setMinMax ( const iaVector3< T > &  min,
const iaVector3< T > &  max 
)

sets min max values of aabox

Parameters
minmin vector for aa box
maxmax vector for aa box

Member Data Documentation

◆ _center

template<class T >
iaVector3<T> igor::iAABox< T >::_center

center of of box

◆ _halfWidths

template<class T >
iaVector3<T> igor::iAABox< T >::_halfWidths

half widths for all axis


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