Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
bvh::v2::BBox< T, N > Struct Template Reference

template<typename T, size_t N>
struct bvh::v2::BBox< T, N >

Definition at line 12 of file bbox.h.

Public Member Functions

 BBox ()=default
 
BVH_ALWAYS_INLINE BBox (const Vec< T, N > &min, const Vec< T, N > &max)
 
BVH_ALWAYS_INLINE BBox (const Vec< T, N > &point)
 
BVH_ALWAYS_INLINE BBoxextend (const BBox &other)
 
BVH_ALWAYS_INLINE BBoxextend (const Vec< T, N > &point)
 
BVH_ALWAYS_INLINE Vec< T, Nget_center () const
 
BVH_ALWAYS_INLINE Vec< T, Nget_diagonal () const
 
BVH_ALWAYS_INLINEget_half_area () const
 

Static Public Member Functions

static BVH_ALWAYS_INLINE constexpr BBox make_empty ()
 

Public Attributes

Vec< T, Nmax
 
Vec< T, Nmin
 

#include <bvh/v2/bbox.h>

Constructor & Destructor Documentation

◆ BBox() [1/3]

template<typename T , size_t N>
bvh::v2::BBox< T, N >::BBox ( )
default

◆ BBox() [2/3]

template<typename T , size_t N>
BVH_ALWAYS_INLINE bvh::v2::BBox< T, N >::BBox ( const Vec< T, N > &  min,
const Vec< T, N > &  max 
)
inline

Definition at line 16 of file bbox.h.

◆ BBox() [3/3]

template<typename T , size_t N>
BVH_ALWAYS_INLINE bvh::v2::BBox< T, N >::BBox ( const Vec< T, N > &  point)
inlineexplicit

Definition at line 17 of file bbox.h.

Member Function Documentation

◆ extend() [1/2]

template<typename T , size_t N>
BVH_ALWAYS_INLINE BBox & bvh::v2::BBox< T, N >::extend ( const BBox< T, N > &  other)
inline

Definition at line 23 of file bbox.h.

◆ extend() [2/2]

template<typename T , size_t N>
BVH_ALWAYS_INLINE BBox & bvh::v2::BBox< T, N >::extend ( const Vec< T, N > &  point)
inline

Definition at line 19 of file bbox.h.

◆ get_center()

template<typename T , size_t N>
BVH_ALWAYS_INLINE Vec< T, N > bvh::v2::BBox< T, N >::get_center ( ) const
inline

Definition at line 30 of file bbox.h.

◆ get_diagonal()

template<typename T , size_t N>
BVH_ALWAYS_INLINE Vec< T, N > bvh::v2::BBox< T, N >::get_diagonal ( ) const
inline

Definition at line 29 of file bbox.h.

◆ get_half_area()

template<typename T , size_t N>
BVH_ALWAYS_INLINE T bvh::v2::BBox< T, N >::get_half_area ( ) const
inline

Definition at line 32 of file bbox.h.

◆ make_empty()

template<typename T , size_t N>
static BVH_ALWAYS_INLINE constexpr BBox bvh::v2::BBox< T, N >::make_empty ( )
inlinestaticconstexpr

Definition at line 40 of file bbox.h.

Member Data Documentation

◆ max

template<typename T , size_t N>
Vec<T, N> bvh::v2::BBox< T, N >::max

Definition at line 13 of file bbox.h.

◆ min

template<typename T , size_t N>
Vec<T, N> bvh::v2::BBox< T, N >::min

Definition at line 13 of file bbox.h.

Collaboration diagram for bvh::v2::BBox< T, N >:
[legend]

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