#include <darts/ray.h>
template<size_t N, typename T>
Ray struct
Simple ray segment data structure.
Along with the ray origin and direction, this data structure additionally stores the segment interval [mint, maxt], which may include positive/negative infinity.
Public static variables
Constructors, destructors, conversion operators
- Ray()
- Construct a new ray.
-
Ray(const Vec<N, T>& o,
const Vec<N, T>& d,
T mint = Ray::
epsilon, T maxt = Ray:: infinity) - Construct a new ray.
- Ray(const Ray& ray, T mint, T maxt)
- Copy a ray, but change the covered segment of the copy.
Public functions
- auto operator()(T t) const -> Vec<N, T>
- Return the position of a point along the ray.