#include <utilities/rgb.h>
Public Member Functions | |
| rgb (float r, float g, float b) | |
| rgb (float a[3]) | |
| rgb (double a[3]) | |
| rgb (const rgb &c) | |
| float | r () const |
| float | g () const |
| float | b () const |
| float | mean () const |
| float | luminance () const |
| bool | black () |
| rgb | operator+ () const |
| rgb | operator- () const |
| float | operator[] (int i) const |
| float & | operator[] (int i) |
| rgb & | operator+= (const rgb &c) |
| rgb & | operator-= (const rgb &c) |
| rgb & | operator *= (const rgb &c) |
| rgb & | operator/= (const rgb &c) |
| rgb & | operator *= (float f) |
| rgb & | operator/= (float f) |
Public Attributes | |
| float | data [3] |
Note that the rendering pipeline always uses this rgb class for convenience, including spectral rendering methods. For spectral rendering, however, the rgb class simply has the spectral radiance copied into all three channels. On output, the spectral radiance is converted to an XYZ tristimulus value that is stored in an Image in XYZ mode.
1.4.3