FemViewer::Ray< T > Class Template Reference

#include <Ray.h>

Collaboration diagram for FemViewer::Ray< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Ray (Vec3< T > orig, Vec3< T > dir, T near=T(0), T far=std::numeric_limits< T >::max())
 unique ray id
CVec3< Toperator() (const T &t) const
template<>
 Ray (Vec3< float > orig, Vec3< float > dir, float near, float far)

Public Attributes

bool debug
Vec3f color
CVec3< Torig
CVec3< Tdir
T tmin
 ray orig and dir
T tmax
unsigned triangleId
 ray min and max distances
CVec3< Tinvdir
 used with triangle mesh (id of the intersected triangle)
int sign [3]
 precomputed for ray-box intersection
uint64_t id
 precomputed for ray-box intersection

template<typename T>
class FemViewer::Ray< T >


Constructor & Destructor Documentation

template<typename T >
FemViewer::Ray< T >::Ray ( Vec3< T orig,
Vec3< T dir,
T  near = T(0),
T  far = std::numeric_limits<T>::max() 
) [inline]

unique ray id

template<>
FemViewer::Ray< float >::Ray ( Vec3< float >  orig,
Vec3< float >  dir,
float  near,
float  far 
) [inline]

Member Function Documentation

template<typename T>
CVec3<T> FemViewer::Ray< T >::operator() ( const T t  )  const [inline]

Member Data Documentation

template<typename T>
Vec3f FemViewer::Ray< T >::color [mutable]
template<typename T>
bool FemViewer::Ray< T >::debug
template<typename T>
CVec3<T> FemViewer::Ray< T >::dir
template<typename T>
uint64_t FemViewer::Ray< T >::id

precomputed for ray-box intersection

template<typename T>
CVec3<T> FemViewer::Ray< T >::invdir

used with triangle mesh (id of the intersected triangle)

template<typename T>
CVec3<T> FemViewer::Ray< T >::orig
template<typename T>
int FemViewer::Ray< T >::sign[3]

precomputed for ray-box intersection

template<typename T>
T FemViewer::Ray< T >::tmax [mutable]
template<typename T>
T FemViewer::Ray< T >::tmin [mutable]

ray orig and dir

template<typename T>
unsigned FemViewer::Ray< T >::triangleId

ray min and max distances


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 3 Jun 2020 for ModFEM by  doxygen 1.6.1