vsg  1.1.0
VulkanSceneGraph library
Public Types | Public Member Functions | Public Attributes | List of all members
vsg::t_box< T > Struct Template Reference

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_boxoperator= (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())
 

Detailed Description

template<typename T>
struct vsg::t_box< T >

t_box template class that represents an axis aligned bounding box


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