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

#include <Ray.h>

Public Member Functions

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

Public Attributes

RealT t0
 
RealT t1
 

Detailed Description

template<typename RealT = double>
struct openvdb::OPENVDB_VERSION_NAME::math::Ray< RealT >::TimeSpan

Definition at line 63 of file Ray.h.

Constructor & Destructor Documentation

template<typename RealT = double>
openvdb::OPENVDB_VERSION_NAME::math::Ray< RealT >::TimeSpan::TimeSpan ( )
inline

Default constructor.

Definition at line 66 of file Ray.h.

template<typename RealT = double>
openvdb::OPENVDB_VERSION_NAME::math::Ray< RealT >::TimeSpan::TimeSpan ( RealT  _t0,
RealT  _t1 
)
inline

Constructor.

Definition at line 68 of file Ray.h.

Member Function Documentation

template<typename RealT = double>
void openvdb::OPENVDB_VERSION_NAME::math::Ray< RealT >::TimeSpan::get ( RealT &  _t0,
RealT &  _t1 
) const
inline

Get both times.

Definition at line 72 of file Ray.h.

template<typename RealT = double>
RealT openvdb::OPENVDB_VERSION_NAME::math::Ray< RealT >::TimeSpan::mid ( ) const
inline

Return the midpoint of the ray.

Definition at line 76 of file Ray.h.

template<typename RealT = double>
void openvdb::OPENVDB_VERSION_NAME::math::Ray< RealT >::TimeSpan::scale ( RealT  s)
inline

Multiplies both times.

Definition at line 78 of file Ray.h.

template<typename RealT = double>
void openvdb::OPENVDB_VERSION_NAME::math::Ray< RealT >::TimeSpan::set ( RealT  _t0,
RealT  _t1 
)
inline

Set both times.

Definition at line 70 of file Ray.h.

template<typename RealT = double>
bool openvdb::OPENVDB_VERSION_NAME::math::Ray< RealT >::TimeSpan::test ( RealT  t) const
inline

Return true if time is inclusive.

Definition at line 80 of file Ray.h.

template<typename RealT = double>
bool openvdb::OPENVDB_VERSION_NAME::math::Ray< RealT >::TimeSpan::valid ( RealT  eps = math::Delta<RealT>::value()) const
inline

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

Definition at line 74 of file Ray.h.

Member Data Documentation

template<typename RealT = double>
RealT openvdb::OPENVDB_VERSION_NAME::math::Ray< RealT >::TimeSpan::t0

Definition at line 64 of file Ray.h.

template<typename RealT = double>
RealT openvdb::OPENVDB_VERSION_NAME::math::Ray< RealT >::TimeSpan::t1

Definition at line 64 of file Ray.h.


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