Blue Brain BioExplorer
core::Box< T > Class Template Reference

#include <MathTypes.h>

Public Types

using vec = glm::vec< 3, T >
 

Public Member Functions

 Box ()=default
 
 Box (const vec &pMin, const vec &pMax)
 
bool operator== (const Box< T > &other) const
 
void merge (const Box< T > &aabb)
 
void merge (const vec &point)
 
void intersect (const Box< T > &aabb)
 
void reset ()
 
bool isEmpty () const
 
vec getCenter () const
 
vec getSize () const
 
const vecgetMin () const
 
const vecgetMax () const
 

Detailed Description

template<class T>
class core::Box< T >

Definition at line 50 of file MathTypes.h.

Member Typedef Documentation

◆ vec

template<class T >
using core::Box< T >::vec = glm::vec<3, T>

Definition at line 53 of file MathTypes.h.

Constructor & Destructor Documentation

◆ Box() [1/2]

template<class T >
core::Box< T >::Box ( )
default

◆ Box() [2/2]

template<class T >
core::Box< T >::Box ( const vec pMin,
const vec pMax 
)
inline

Definition at line 57 of file MathTypes.h.

Member Function Documentation

◆ getCenter()

template<class T >
vec core::Box< T >::getCenter ( ) const
inline

Definition at line 90 of file MathTypes.h.

◆ getMax()

template<class T >
const vec& core::Box< T >::getMax ( ) const
inline

Definition at line 93 of file MathTypes.h.

◆ getMin()

template<class T >
const vec& core::Box< T >::getMin ( ) const
inline

Definition at line 92 of file MathTypes.h.

◆ getSize()

template<class T >
vec core::Box< T >::getSize ( ) const
inline

Definition at line 91 of file MathTypes.h.

◆ intersect()

template<class T >
void core::Box< T >::intersect ( const Box< T > &  aabb)
inline

Definition at line 76 of file MathTypes.h.

◆ isEmpty()

template<class T >
bool core::Box< T >::isEmpty ( ) const
inline

Definition at line 88 of file MathTypes.h.

◆ merge() [1/2]

template<class T >
void core::Box< T >::merge ( const Box< T > &  aabb)
inline

Definition at line 64 of file MathTypes.h.

◆ merge() [2/2]

template<class T >
void core::Box< T >::merge ( const vec point)
inline

Definition at line 70 of file MathTypes.h.

◆ operator==()

template<class T >
bool core::Box< T >::operator== ( const Box< T > &  other) const
inline

Definition at line 62 of file MathTypes.h.

◆ reset()

template<class T >
void core::Box< T >::reset ( )
inline

Definition at line 82 of file MathTypes.h.


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