|
cgv
|
Struct template for varying n-dimensional rays with arbitrary data type defined by origin and direction. More...
#include <ray.h>
Public Member Functions | |
| ray (unsigned int n=3) | |
| Construct an invalid ray with origin at zero and undefined direction. | |
| ray (const vec< T > &origin, const vec< T > &direction) | |
| Construct a ray with given origin and direction. The given orign and direction must have the same dimension. | |
| vec< T > | position (T t) const |
| Return the position of the ray at the given distance (ray parameter t) from its origin. | |
Public Attributes | |
| vec< T > | origin |
| vec< T > | direction |
Struct template for varying n-dimensional rays with arbitrary data type defined by origin and direction.
|
inline |
Construct an invalid ray with origin at zero and undefined direction.
Definition at line 16 of file ray.h.
References cgv::math::vec< T >::fill(), and cgv::math::vec< T >::resize().
|
inline |
Construct a ray with given origin and direction. The given orign and direction must have the same dimension.
Definition at line 24 of file ray.h.
References cgv::math::vec< T >::dim().
|
inline |
| vec<T> cgv::math::ray< T >::direction |
| vec<T> cgv::math::ray< T >::origin |