|
INFO804 Introduction à l'informatique graphique
|
#include <Ray.h>
Public Member Functions | |
| Ray () | |
| Default constructor. | |
| Ray (const Point3 &o, const Vector3 &dir, int d=1) | |
| Constructor from origin and vector. The vector may not be unitary. | |
Public Attributes | |
| Point3 | origin |
| origin of the ray. | |
| Vector3 | direction |
| unit direction of the ray. | |
| int | depth |
| depth of the ray, i.e. the number of times it can bounce on an object. | |
This structure stores a ray having an origin and a direction. It also stores its depth.
| int rt::Ray::depth |