- [Main Page](index.md)
- [Classes](annotated.md)
- [Files](files.md)
- [Directories](dirs.md)
- [Related Pages](pages.md)
- [Class List](annotated.md)
- [Alphabetical List](classes.md)
- [Class Hierarchy](hierarchy.md)
- [Class Members](functions.md)
ColorVector Class Reference¶
#include <ColorVec.h>
Public Member Functions |
|
| ColorVector (void) | |
| ColorVector (float red, float green, float blue) | |
| ColorVector (const float scalar) | |
| ColorVector (COLORREF c) | |
| ColorVector (const ColorVector &other) | |
| ColorVector (const HalfColorBuf &other) | |
| ColorVector & | operator= (float scalar) |
| ColorVector & | operator= (const ColorVector &other) |
| ColorVector & | operator+= (const ColorVector &other) |
| ColorVector & | operator-= (const ColorVector &other) |
| ColorVector & | operator *= (const ColorVector &other) |
| ColorVector & | operator *= (float scale) |
| ColorVector & | operator/= (const ColorVector &other) |
| ColorVector & | operator/= (float scale) |
| float | Red () const |
| float | Green () const |
| float | Blue () const |
| void | SetRed (float red) |
| void | SetGreen (float green) |
| void | SetBlue (float blue) |
| void | Set (float red, float green, float blue) |
| void | Set (float init) |
| int | operator== (const ColorVector &a) const |
| int | operator!= (const ColorVector &a) const |
| ColorVector | operator+ (const ColorVector &a) const |
| ColorVector | operator- (const ColorVector &a) const |
| ColorVector | operator * (const ColorVector &a) const |
| ColorVector | operator * (float s) const |
| ColorVector | operator/ (float s) const |
| ColorVector | operator/ (const ColorVector &a) const |
| float | operator[] (int i) const |
| COLORREF | GetCOLORREF () const |
| float | GetLuminance () const |
| void | Min (float min) |
| void | Max (float max) |
| void | MinMax (float min, float max) |
Public Attributes |
|
| float | m_red |
| float | m_green |
| float | m_blue |
Friends |
|
| ColorVector | operator * (const float s, const ColorVector &a) |