|
Rendu
A lightweight rendering engine for experimentations
|
Represent a ray, shot from a given position in a specific direction. More...
#include <Intersection.hpp>
Public Member Functions | |
| Ray (const glm::vec3 &origin, const glm::vec3 &direction) | |
Public Attributes | |
| const glm::vec3 | pos |
| Ray position. | |
| const glm::vec3 | dir |
| Ray direction (normalized). | |
| const glm::vec3 | invdir |
| Ray reciprocal direction (normalized). | |
Represent a ray, shot from a given position in a specific direction.
| Ray::Ray | ( | const glm::vec3 & | origin, |
| const glm::vec3 & | direction | ||
| ) |
Constructor.
| origin | the position the ray was shot from |
| direction | the direction of the ray (will be normalized) |