|
Path Tracer
|
Combination of an origin and a direction. More...
#include <Ray.h>
Public Member Functions | |
| Ray () | |
| Default constructor. More... | |
| Ray (const DoubleVec3D &origin, const DoubleUnitVec3D &direction) | |
| Main constructor. More... | |
| Ray (const Ray &ray) | |
| Copy constructor. More... | |
| DoubleVec3D | getOrigin () const |
| Getter for the origin. More... | |
| DoubleUnitVec3D | getDirection () const |
| Getter for the direction. More... | |
| void | setOrigin (const DoubleVec3D &origin) |
| Setter for the origin. More... | |
| void | setDirection (const DoubleUnitVec3D &direction) |
| Setter for the direction. More... | |
Combination of an origin and a direction.
| Ray::Ray | ( | ) |
Default constructor.
By default, the origin is at (0, 0, 0) and the direction is (1, 0, 0)
| Ray::Ray | ( | const DoubleVec3D & | origin, |
| const DoubleUnitVec3D & | direction | ||
| ) |
Main constructor.
| origin | Where the ray starts. |
| direction | The ray direction. |
| Ray::Ray | ( | const Ray & | ray | ) |
Copy constructor.
| ray | The ray that will be copied. |
| DoubleVec3D Ray::getDirection | ( | ) | const |
Getter for the direction.
| DoubleVec3D Ray::getOrigin | ( | ) | const |
Getter for the origin.
| void Ray::setDirection | ( | const DoubleUnitVec3D & | direction | ) |
Setter for the direction.
| direction | The new direction of this ray. |
| void Ray::setOrigin | ( | const DoubleVec3D & | origin | ) |
Setter for the origin.
| origin | The new origin of this ray. |