hgeColorRGB Operators

The following operators are defined for hgeColorRGB class:

hgeColorRGB   operator-  (const hgeColorRGB &c);
hgeColorRGB   operator+  (const hgeColorRGB &c);
hgeColorRGB   operator*  (const hgeColorRGB &c);
hgeColorRGB&  operator-= (const hgeColorRGB &c);
hgeColorRGB&  operator+= (const hgeColorRGB &c);
bool          operator== (const hgeColorRGB &c);
bool          operator!= (const hgeColorRGB &c);

hgeColorRGB   operator/  (float scalar);
hgeColorRGB   operator*  (float scalar);
hgeColorRGB&  operator*= (float scalar);

hgeColorRGB&  operator=  (const hgeColorRGB &c);

So, you can use hgeColorRGB objects in expressions like

color1 = color2 + color3 * 0.5f;
if(color1 != color2) color1 += color3;

Requirements

Header: hgecolor.h