Fermat
|
Axis-Aligned Bounding Bbox class, templated over an arbitrary vector type
#include <bbox.h>
Public Types | |
typedef Vector_t::value_type | value_type |
typedef Vector_t | vector_type |
Public Methods | |
CUGAR_HOST CUGAR_DEVICE | Bbox () |
CUGAR_HOST CUGAR_DEVICE | Bbox (const Vector_t &v) |
CUGAR_HOST CUGAR_DEVICE | Bbox (const Vector_t &v1, const Vector_t &v2) |
CUGAR_HOST CUGAR_DEVICE | Bbox (const Bbox< Vector_t > &bb1, const Bbox< Vector_t > &bb2) |
CUGAR_HOST CUGAR_DEVICE | Bbox (const Bbox< Vector_t > &bb) |
CUGAR_HOST CUGAR_DEVICE void | insert (const Vector_t &v) |
CUGAR_HOST CUGAR_DEVICE void | insert (const Bbox &v) |
CUGAR_HOST CUGAR_DEVICE void | clear () |
CUGAR_HOST CUGAR_DEVICE const Vector_t & | operator[] (const size_t i) const |
CUGAR_HOST CUGAR_DEVICE Vector_t & | operator[] (const size_t i) |
CUGAR_HOST CUGAR_DEVICE Bbox< Vector_t > & | operator= (const Bbox< Vector_t > &bb) |
Public Members | |
Vector_t | m_min |
min corner | |
Vector_t | m_max |
max corner | |
cugar::Bbox< Vector_t >::Bbox | ( | ) |
empty constructor
cugar::Bbox< Vector_t >::Bbox | ( | const Vector_t & | v | ) |
point constructor
v | point |
cugar::Bbox< Vector_t >::Bbox | ( | const Vector_t & | v1, |
const Vector_t & | v2 | ||
) |
min/max constructor
v1 | min corner |
v2 | max corner |
cugar::Bbox< Vector_t >::Bbox | ( | const Bbox< Vector_t > & | bb1, |
const Bbox< Vector_t > & | bb2 | ||
) |
merging constructor
bb1 | first bbox |
bb2 | second bbox |
cugar::Bbox< Vector_t >::Bbox | ( | const Bbox< Vector_t > & | bb | ) |
copy constructor
bb | bbox to copy |
void cugar::Bbox< Vector_t >::clear | ( | ) |
clear bbox
void cugar::Bbox< Vector_t >::insert | ( | const Vector_t & | v | ) |
insert a point
v | point to insert |
void cugar::Bbox< Vector_t >::insert | ( | const Bbox< Vector_t > & | v | ) |
insert a bbox
v | bbox to insert |
Bbox< Vector_t > & cugar::Bbox< Vector_t >::operator= | ( | const Bbox< Vector_t > & | bb | ) |
copy operator
bb | bbox to copy |
|
inline |
const corner indexing operator
i | corner to retrieve |
|
inline |
corner indexing operator
i | corner to retrieve |