source: GTP/trunk/App/Demos/Illum/pathmap/Radion.hpp @ 2197

Revision 2197, 654 bytes checked in by szirmay, 17 years ago (diff)
Line 
1#pragma once
2#include "Vector.hpp"
3#include <ostream>
4
5/*!
6\brief Class that describes a virtual light source on a diffuse surface.
7*/
8class Radion
9{
10public:
11        //! surface normal at the virtual light source
12        Vector normal;
13        //! power of the virtual light source
14        Vector radiance;
15        //! position of the virtual light source
16        Vector position;
17
18        //! probability of generation (useful for clipping the form factor)
19        float probability;
20
21        Radion(void);
22        ~Radion(void);
23
24        double getFormFactorTo(const Radion& o) const;
25};
26
27std::ostream& operator<<(std::ostream& s, const Radion& r);
28std::istream& operator>>(std::istream& s, Radion& r);
Note: See TracBrowser for help on using the repository browser.