HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nanovdb::Ray< RealT >::TimeSpan Struct Reference

#include <Ray.h>

Public Member Functions

__hostdev__ TimeSpan ()
 Default constructor. More...
 
__hostdev__ TimeSpan (RealT _t0, RealT _t1)
 Constructor. More...
 
__hostdev__ void set (RealT _t0, RealT _t1)
 Set both times. More...
 
__hostdev__ void get (RealT &_t0, RealT &_t1) const
 Get both times. More...
 
__hostdev__ bool valid (RealT eps=Delta< RealT >::value()) const
 Return true if t1 is larger than t0 by at least eps. More...
 
__hostdev__ RealT mid () const
 Return the midpoint of the ray. More...
 
__hostdev__ void scale (RealT s)
 Multiplies both times. More...
 
__hostdev__ bool test (RealT t) const
 Return true if time is inclusive. More...
 

Public Attributes

RealT t0
 
RealT t1
 

Detailed Description

template<typename RealT>
struct nanovdb::Ray< RealT >::TimeSpan

Definition at line 25 of file Ray.h.

Constructor & Destructor Documentation

template<typename RealT >
__hostdev__ nanovdb::Ray< RealT >::TimeSpan::TimeSpan ( )
inline

Default constructor.

Definition at line 29 of file Ray.h.

template<typename RealT >
__hostdev__ nanovdb::Ray< RealT >::TimeSpan::TimeSpan ( RealT  _t0,
RealT  _t1 
)
inline

Constructor.

Definition at line 31 of file Ray.h.

Member Function Documentation

template<typename RealT >
__hostdev__ void nanovdb::Ray< RealT >::TimeSpan::get ( RealT &  _t0,
RealT &  _t1 
) const
inline

Get both times.

Definition at line 43 of file Ray.h.

template<typename RealT >
__hostdev__ RealT nanovdb::Ray< RealT >::TimeSpan::mid ( ) const
inline

Return the midpoint of the ray.

Definition at line 51 of file Ray.h.

template<typename RealT >
__hostdev__ void nanovdb::Ray< RealT >::TimeSpan::scale ( RealT  s)
inline

Multiplies both times.

Definition at line 53 of file Ray.h.

template<typename RealT >
__hostdev__ void nanovdb::Ray< RealT >::TimeSpan::set ( RealT  _t0,
RealT  _t1 
)
inline

Set both times.

Definition at line 37 of file Ray.h.

template<typename RealT >
__hostdev__ bool nanovdb::Ray< RealT >::TimeSpan::test ( RealT  t) const
inline

Return true if time is inclusive.

Definition at line 60 of file Ray.h.

template<typename RealT >
__hostdev__ bool nanovdb::Ray< RealT >::TimeSpan::valid ( RealT  eps = Delta<RealT>::value()) const
inline

Return true if t1 is larger than t0 by at least eps.

Definition at line 49 of file Ray.h.

Member Data Documentation

template<typename RealT >
RealT nanovdb::Ray< RealT >::TimeSpan::t0

Definition at line 27 of file Ray.h.

template<typename RealT >
RealT nanovdb::Ray< RealT >::TimeSpan::t1

Definition at line 27 of file Ray.h.


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