|
|
Colour vector including red, green and blue component.
| static const char RGB | RGB |
| static const char RGB_LOOP | RGB_LOOP |
[private]
| CLR c[RGB] | c[RGB] |
| Colour3 (CLR r, CLR g, CLR b)
| Colour3 |
Construct colour by individual components
| Colour3 (const CLR& a)
| Colour3 |
Construct gray-value colour.
Parameters:
| a | value for all the rgb components |
| Colour3 (const Colour5& a)
| Colour3 |
Construct rgb colour from Colour5. Filter and transmit value are ignored
| Colour3 ()
| Colour3 |
[private]
Construct uninitialized colour.
| void add (const Colour3 &d)
| add |
Add colour.
Parameters:
| d | colour to add |
| void add (const Colour5 &d)
| add |
Add colour.
Parameters:
| d | colour to add |
| void sub (const Colour3 &d)
| sub |
Subtract colour.
Parameters:
| d | colour to subtract |
| void scale (CLR s)
| scale |
Scale colour.
Parameters:
| s | scaling factor |
| void scale (const Colour5& d)
| scale |
Scale colour componentwise.
Parameters:
| d | scaling factors |
| void scale (const Colour3& d)
| scale |
Scale colour componentwise.
Parameters:
| d | scaling factors |
| void exp ()
| exp |
Calculate e^x for each colour components x.
| void negExp ()
| negExp |
Calculate e^(-x) for each colour components x.
| Colour3 scaled (CLR s)
| scaled |
[const]
Parameters:
| s | scaling factor |
Returns: colour scaled by factor
| Colour3 scaled (const Colour3 &d)
| scaled |
[const]
Parameters:
| d | scaling factors |
Returns: componentwise scaled colour
| Colour3 scaled (const Colour5 &d)
| scaled |
[const]
Parameters:
| d | scaling factors |
Returns: componentwise scaled colour
| CLR norm ()
| norm |
[const]
Colour norm
Returns: a (unspecified) norm of the colour components
| CLR minElement ()
| minElement |
[const]
Minimum.
Returns: the minimal element of the colour vector
| CLR maxElement ()
| maxElement |
[const]
Maximum.
Returns: the maximal element of the colour vector
| Colour3 add (const Colour3& c1, const Colour3& c2)
| add |
[static]
Adds two colours (componentwise).
| Colour3 sub (const Colour3& c1, const Colour3& c2)
| sub |
[static]
Subtracts colour c2 from colour c1 (componentwise).
| Colour3 sqrt (const Colour3& d)
| sqrt |
[static]
Calcluate the square root of a colour (componentwise).
| Colour3 exp (const Colour3& d)
| exp |
[static]
Calculate e^x for each colour component.