Операторы класса hgeColor

Следующие операторы определены для класса hgeColor:

hgeColor   operator-  (const hgeColor &c);
hgeColor   operator+  (const hgeColor &c);
hgeColor   operator*  (float scalar);

hgeColor&  operator=  (const hgeColor &c);
hgeColor&  operator-= (const hgeColor &c);
hgeColor&  operator+= (const hgeColor &c);
hgeColor&  operator*= (float scalar);

bool       operator== (const hgeColor &c);
bool       operator!= (const hgeColor &c);

Поэтому можно использовать объекты hgeColor в подобных выражениях:

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

Требования

Заголовок: hgecolor.h