template<typename T>
class Argus::RGBTuple< T >
RGBTuple template class.
This is a Tuple specialization containing 3 elements corresponding to the RGB color channels: R, G, and B. Values can be accessed using the named methods or subscript indexing using the Argus::RGBChannel enum.
Definition at line 636 of file Types.h.
|
| | RGBTuple () |
| |
| | RGBTuple (const Tuple< RGB_CHANNEL_COUNT, T > &other) |
| |
| | RGBTuple (T init) |
| |
| | RGBTuple (T _r, T _g, T _b) |
| |
| T & | r () |
| |
| const T & | r () const |
| |
| T & | g () |
| |
| const T & | g () const |
| |
| T & | b () |
| |
| const T & | b () const |
| |
| bool | operator== (const Tuple< N, T > &rhs) const |
| | Returns true when every element in the two tuples are identical. More...
|
| |
| bool | operator!= (const Tuple< N, T > &rhs) const |
| | Returns true if there are any differences between the two tuples. More...
|
| |
| Tuple< N, T > & | operator+= (const Tuple< N, T > &rhs) |
| | Adds every element of another tuple to the elements of this tuple. More...
|
| |
| Tuple< N, T > & | operator-= (const Tuple< N, T > &rhs) |
| | Subtracts every element of another tuple from the elements of this tuple. More...
|
| |
| Tuple< N, T > & | operator*= (const T &rhs) |
| | Multiplies every element in the tuple by a single value. More...
|
| |
| Tuple< N, T > & | operator/= (const T &rhs) |
| | Divides every element in the tuple by a single value. More...
|
| |
| const Tuple< N, T > | operator+ (const Tuple< N, T > &rhs) const |
| | Returns the result of adding another tuple to this tuple. More...
|
| |
| const Tuple< N, T > | operator- (const Tuple< N, T > &rhs) const |
| | Returns the result of subtracting another tuple from this tuple. More...
|
| |
| const Tuple< N, T > | operator* (const T &rhs) const |
| | Returns the result of multiplying this tuple by a single value. More...
|
| |
| const Tuple< N, T > | operator/ (const T &rhs) const |
| | Returns the result of dividing this tuple by a single value. More...
|
| |
| T & | operator[] (unsigned int i) |
| |
| const T & | operator[] (unsigned int i) const |
| |