16 #include "core/color.hpp" 52 photon(
double r,
double g,
double b,
double e = 1.0);
109 operator bool()
const;
122 photon
operator*(
double f,
const photon & p);
130 photon
operator*(
const color & c,
const photon & p);
photon operator+(const photon &) const
Additive synthesys with another photon.
Definition: photon.cpp:56
void operator*=(const rt::color &)
Make a color absorb a photon.
Definition: photon.cpp:46
RGBA color representation.
Definition: color.hpp:31
void operator+=(const photon &)
Additive synthesys with another photon.
Definition: photon.cpp:32
const rt::color & color() const
Photon color.
Definition: photon.hpp:57
double energy() const
Photon energy.
Definition: photon.cpp:24
photon()
Create a new null photon (with no energy).
Definition: photon.cpp:6
photon operator*(const rt::color &) const
Make a color absorb a photon.
Definition: photon.cpp:62
Light photon class.
Definition: photon.hpp:28
color operator*(double f, const color &c)
Same as color::operator*(double).