Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

Ray Class Reference

Class representing a ray in 3D space. More...

#include <ray.h>

List of all members.

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.


Detailed Description

Class representing a ray in 3D space.

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.


The documentation for this class was generated from the following file:
Generated on Sun Mar 26 19:14:16 2006 for ASR by  doxygen 1.4.4