OWL
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
owl::common::box_t< T > Struct Template Reference

Public Types

enum  { dims = T::dims }
 
typedef T vec_t
 
typedef T::scalar_t scalar_t
 

Public Member Functions

__both__ box_t (const vec_t &v)
 
__both__ box_t (const vec_t &lo, const vec_t &hi)
 
__both__ box_t including (const vec_t &other) const
 
__both__ box_t including (const box_t &other) const
 
__both__ box_textend (const vec_t &other)
 
__both__ box_textend (const box_t &other)
 
__both__ interval< scalar_t > get_slab (const uint32_t dim)
 
__both__ bool contains (const vec_t &point) const
 
__both__ bool overlaps (const box_t &other) const
 
__both__ vec_t center () const
 
__both__ vec_t span () const
 
__both__ vec_t size () const
 
__both__ long_type_of< typenameT::scalar_t >::type volume () const
 
__both__ bool empty () const
 

Public Attributes

vec_t lower
 
vec_t upper
 

Constructor & Destructor Documentation

◆ box_t() [1/2]

template<typename T >
__both__ owl::common::box_t< T >::box_t ( const vec_t &  v)
inlineexplicit

construct a new, origin-oriented box of given size ‍/ explicit inline both box_t(const vec_t &box_size) : lower(vec_t(0)), upper(box_size) {} /! construct a new box around a single point

◆ box_t() [2/2]

template<typename T >
__both__ owl::common::box_t< T >::box_t ( const vec_t &  lo,
const vec_t &  hi 
)
inline

construct a new, origin-oriented box of given size

Member Function Documentation

◆ extend() [1/2]

template<typename T >
__both__ box_t & owl::common::box_t< T >::extend ( const box_t< T > &  other)
inline

returns new box including both ourselves and the given point

◆ extend() [2/2]

template<typename T >
__both__ box_t & owl::common::box_t< T >::extend ( const vec_t &  other)
inline

returns new box including both ourselves and the given point

◆ get_slab()

template<typename T >
__both__ interval< scalar_t > owl::common::box_t< T >::get_slab ( const uint32_t  dim)
inline

get the d-th dimensional slab (lo[dim]..hi[dim]

◆ including() [1/2]

template<typename T >
__both__ box_t owl::common::box_t< T >::including ( const box_t< T > &  other) const
inline

returns new box including both ourselves and the given point

◆ including() [2/2]

template<typename T >
__both__ box_t owl::common::box_t< T >::including ( const vec_t &  other) const
inline

returns new box including both ourselves and the given point


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