#include <Photon.hh>

Class abstracts a photon illuminating some part of the scene. It's created in a process of tracing rays shot from a light source and stored in a structure suitable for Nearest Neighboor algorithm (kd-tree).
Definition at line 32 of file Photon.hh.
Public Member Functions | |
| Photon (const Math::Vector &Position, const World::Color &Color) | |
| const Math::Vector & | GetPosition () |
| const World::Color & | GetColor () |
| Double | GetIntensity () |
Protected Attributes | |
| Math::Vector | Position |
| World::Color | Color |
| Double | Intensity |
| Render::Photon::Photon | ( | const Math::Vector & | Position, | |
| const World::Color & | Color | |||
| ) | [inline] |
| const Math::Vector& Render::Photon::GetPosition | ( | ) | [inline] |
| const World::Color& Render::Photon::GetColor | ( | ) | [inline] |
| Double Render::Photon::GetIntensity | ( | ) | [inline] |
Math::Vector Render::Photon::Position [protected] |
World::Color Render::Photon::Color [protected] |
Photon color; wonder if it will be used
Definition at line 38 of file Photon.hh.
Referenced by GetColor().
Double Render::Photon::Intensity [protected] |
Needed for luminance calculations
Definition at line 41 of file Photon.hh.
Referenced by GetIntensity().
1.5.5