Simple n-dimensional ray data structure with minimum / maximum extent information. More...
#include <mitsuba/core/ray.h>
Public Types | |
typedef _PointType | PointType |
typedef _VectorType | VectorType |
typedef PointType::Scalar | Scalar |
Public Member Functions | |
TRay () | |
Construct a new ray. More... | |
TRay (const TRay &ray) | |
Copy constructor (1) More... | |
TRay (const TRay &ray, Scalar mint, Scalar maxt) | |
Copy constructor (2) More... | |
TRay (const PointType &o, Scalar time) | |
Construct a new ray, while not specifying a direction yet. More... | |
TRay (const PointType &o, const VectorType &d, Scalar time) | |
Construct a new ray. More... | |
TRay (const PointType &o, const VectorType &d, Scalar mint, Scalar maxt, Scalar time) | |
Construct a new ray. More... | |
void | setOrigin (const PointType &pos) |
Set the origin. More... | |
void | setTime (Scalar tval) |
Set the time. More... | |
void | setDirection (const VectorType &dir) |
Set the direction and update the reciprocal. More... | |
PointType | operator() (Scalar t) const |
Return the position of a point along the ray. More... | |
std::string | toString () const |
Return a string representation of this ray. More... | |
Public Attributes | |
PointType | o |
Ray origin. More... | |
Scalar | mint |
Minimum range for intersection tests. More... | |
VectorType | d |
Ray direction. More... | |
Scalar | maxt |
Maximum range for intersection tests. More... | |
VectorType | dRcp |
Componentwise reciprocals of the ray direction. More... | |
Float | time |
Time value associated with this ray. More... | |
Simple n-dimensional ray data structure with minimum / maximum extent information.
The somewhat peculiar ordering of the attributes is due to alignment purposes and should not be changed.
typedef _PointType mitsuba::TRay< _PointType, _VectorType >::PointType |
typedef PointType::Scalar mitsuba::TRay< _PointType, _VectorType >::Scalar |
typedef _VectorType mitsuba::TRay< _PointType, _VectorType >::VectorType |
|
inline |
Construct a new ray.
|
inline |
Copy constructor (1)
|
inline |
Copy constructor (2)
|
inline |
Construct a new ray, while not specifying a direction yet.
|
inline |
Construct a new ray.
|
inline |
Construct a new ray.
|
inline |
Return the position of a point along the ray.
eval
– i.e. position lookups should be written as ray.eval(t)
|
inline |
Set the direction and update the reciprocal.
|
inline |
Set the origin.
|
inline |
Set the time.
|
inline |
Return a string representation of this ray.
VectorType mitsuba::TRay< _PointType, _VectorType >::d |
Ray direction.
VectorType mitsuba::TRay< _PointType, _VectorType >::dRcp |
Componentwise reciprocals of the ray direction.
Scalar mitsuba::TRay< _PointType, _VectorType >::maxt |
Maximum range for intersection tests.
Scalar mitsuba::TRay< _PointType, _VectorType >::mint |
Minimum range for intersection tests.
PointType mitsuba::TRay< _PointType, _VectorType >::o |
Ray origin.
Float mitsuba::TRay< _PointType, _VectorType >::time |
Time value associated with this ray.