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

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

Definition at line 16 of file ray.h.

Public Member Functions

 Ray ()=default
 
BVH_ALWAYS_INLINE Ray (const Vec< T, N > &org, const Vec< T, N > &dir, T tmin=0, T tmax=std::numeric_limits< T >::max())
 
template<bool SafeInverse = false>
BVH_ALWAYS_INLINE Vec< T, Nget_inv_dir () const
 
BVH_ALWAYS_INLINE Octant get_octant () const
 

Static Public Member Functions

static BVH_ALWAYS_INLINE Vec< T, Npad_inv_dir (const Vec< T, N > &inv_dir)
 

Public Attributes

Vec< T, Ndir
 
Vec< T, Norg
 
tmax
 
tmin
 

#include <bvh/v2/ray.h>

Constructor & Destructor Documentation

◆ Ray() [1/2]

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

◆ Ray() [2/2]

template<typename T , size_t N>
BVH_ALWAYS_INLINE bvh::v2::Ray< T, N >::Ray ( const Vec< T, N > &  org,
const Vec< T, N > &  dir,
tmin = 0,
tmax = std::numeric_limits<T>::max() 
)
inline

Definition at line 21 of file ray.h.

Member Function Documentation

◆ get_inv_dir()

template<typename T , size_t N>
template<bool SafeInverse = false>
BVH_ALWAYS_INLINE Vec< T, N > bvh::v2::Ray< T, N >::get_inv_dir ( ) const
inline

Definition at line 30 of file ray.h.

◆ get_octant()

template<typename T , size_t N>
BVH_ALWAYS_INLINE Octant bvh::v2::Ray< T, N >::get_octant ( ) const
inline

Definition at line 36 of file ray.h.

◆ pad_inv_dir()

template<typename T , size_t N>
static BVH_ALWAYS_INLINE Vec< T, N > bvh::v2::Ray< T, N >::pad_inv_dir ( const Vec< T, N > &  inv_dir)
inlinestatic

Definition at line 46 of file ray.h.

Member Data Documentation

◆ dir

template<typename T , size_t N>
Vec<T, N> bvh::v2::Ray< T, N >::dir

Definition at line 17 of file ray.h.

◆ org

template<typename T , size_t N>
Vec<T, N> bvh::v2::Ray< T, N >::org

Definition at line 17 of file ray.h.

◆ tmax

template<typename T , size_t N>
T bvh::v2::Ray< T, N >::tmax

Definition at line 18 of file ray.h.

◆ tmin

template<typename T , size_t N>
T bvh::v2::Ray< T, N >::tmin

Definition at line 18 of file ray.h.

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

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