vsg
1.1.0
VulkanSceneGraph library
|
t_box template class that represents an axis aligned bounding box More...
#include <box.h>
Public Types | |
using | value_type = T |
using | vec_type = t_vec3< T > |
Public Member Functions | |
constexpr | t_box (const t_box &s)=default |
template<typename R > | |
constexpr | t_box (const t_box< R > &s) |
constexpr | t_box (const vec_type &in_min, const vec_type &in_max) |
constexpr t_box & | operator= (const t_box &)=default |
constexpr std::size_t | size () const |
value_type & | operator[] (std::size_t i) |
value_type | operator[] (std::size_t i) const |
bool | valid () const |
operator bool () const noexcept | |
T * | data () |
const T * | data () const |
void | reset () |
template<typename R > | |
void | add (const t_vec3< R > &v) |
void | add (value_type x, value_type y, value_type z) |
template<typename R > | |
void | add (const t_box< R > &bb) |
Public Attributes | |
vec_type | min = vec_type(std::numeric_limits<value_type>::max(), std::numeric_limits<value_type>::max(), std::numeric_limits<value_type>::max()) |
vec_type | max = vec_type(std::numeric_limits<value_type>::lowest(), std::numeric_limits<value_type>::lowest(), std::numeric_limits<value_type>::lowest()) |
t_box template class that represents an axis aligned bounding box