|
Ray Tracer Common Project
Image rendering program based on the ray tracing technique.
|
#include <ray.hpp>
Public Member Functions | |
| ray (const vector &origin, const vector &u, int life_time=10) | |
| Create a new light ray. More... | |
| rt::hit | hit (const Scene *scene, const Object *except=0) const |
| Get all informations about the collision between this ray and an object in a scene. More... | |
| photon | trace (const Scene *scene, int flags, double *depth=0) const |
Public Member Functions inherited from rt::euclidian | |
| euclidian (const vector &origin, const vector &u) | |
| Constructor. More... | |
| const vector & | direction () const |
| The direction vector. | |
| const vector & | u () const |
| The direction vector (alias for euclidian::direction()) | |
| const vector & | origin () const |
| The position vector. | |
Static Public Member Functions | |
| static int | ambientLightSampleSize () |
| static void | setAmbientLightSampleSize (int ss) |
Light ray.
A ray is an euclidian representing a light ray through the scene. You can know if a ray hit some Object, or trace the ray to compute its photon.
Create a new light ray.
| origin | Position of the ray origin |
| u | Direction of the ray |
| life_time | Maximum reflexions count |
Get all informations about the collision between this ray and an object in a scene.
| scene |
infinity. the ray through a scene.
| scene | |
| depth | A pointer to a double. If this pointer is not null, its value will be set to the depth value of the ray. If the ray hit nothing, this value will be infinity |
1.8.15