cgv
|
This class defines a template for n-dimensional rays with arbitrary data type defined by origin and direction. More...
#include <ray.h>
Public Member Functions | |
ray () | |
Construct an invalid ray with origin at zero and undefined direction. | |
ray (const fvec< T, N > &origin, const fvec< T, N > &direction) | |
Construct a ray with given origin and direction. | |
fvec< T, N > | position (float t) const |
Returns the position of the ray at the given distance (ray parameter t) from its origin. | |
Public Attributes | |
fvec< T, N > | origin |
fvec< T, N > | direction |
This class defines a template for n-dimensional rays with arbitrary data type defined by origin and direction.
|
inline |
|
inline |
|
inline |
fvec<T, N> cgv::math::ray< T, N >::direction |
fvec<T, N> cgv::math::ray< T, N >::origin |