#include <ray.h>
Public Member Functions | |
Ray () | |
Default Constructor. | |
Ray (const Point &o, const Vector &d, float mint=0.001f, float maxt=INF) | |
Constructor initializing the ray's origin and direction, and optionally the time parameters. | |
~Ray () | |
Destructor. | |
Public Attributes | |
Point | orig |
Origin of ray. | |
Vector | dir |
Direction of ray. | |
float | minT |
Start time of ray. | |
float | maxT |
End time of ray. |
The ray's attributes are publicly accessible, and consist of the ray origin and direction, plus parametric min/max along the ray. A point along the ray can be found by taking origin + t*dir, where t is the time parameter specifying how far away from the origin we are.