#include <Ray.h>
Collaboration diagram for Ray:

Public Methods | |
| Ray () | |
| Default contructor. | |
| Ray (const Ray &ray) | |
| Copy constructor. | |
| Ray (const Vertex3 origin, const Vertex3 direction) | |
| Constuct a ray with given origin and direction. | |
| const Vertex3 & | origin () const |
| Return the ray origin. | |
| const Vertex3 & | direction () const |
| Return the ray direction. | |
| void | setOrigin (const Vertex3 &origin) |
| Sets the ray origin. | |
| void | setDirection (const Vertex3 &direction) |
| Sets the ray direction. | |
| void | transform (const Matrix4 &M) |
| Transforms the ray. More... | |
| void | transformOrigin (const Matrix4 &M) |
| Transforms the ray origin. More... | |
Public Attributes | |
| Vertex3 | o |
| Ray origin. | |
| Vertex3 | d |
| Ray direction. | |
A ray is defined by an origin o and a direction d:
|
|
Transforms the ray.
|
|
|
Transforms the ray origin.
|