RGBColor - #ifndef _RGB_COLOR_ # #define _RGB_COLOR_ / /...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
#ifndef __RGB_COLOR__ #define __RGB_COLOR__ # // This file contains the declaration of the class RGBColor / //------------------------------------------------------------ class RGBColor / class RGBColor { c public: p float r, g, b; r public: p RGBColor(void); // default constructor RGBColor(float c); // constructor RGBColor(float _r, float _g, float _b); // constructor RGBColor(const RGBColor& c); // copy constructor c ~RGBColor(void); // destructor d RGBColor& // assignment operator operator= (const RGBColor& rhs); o RGBColor // addition operator+ (const RGBColor& c) const; o RGBColor& // compound addition operator+= (const RGBColor& c); o RGBColor // multiplication by a float on the right operator* (const float a) const; o RGBColor& // compound multiplication by a float on the right operator*= (const float a); o RGBColor // division by a float operator/ (const float a) const; o RGBColor& // compound division by a float operator/= (const float a); o RGBColor // component-wise multiplication operator* (const RGBColor& c) const; o
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

RGBColor - #ifndef _RGB_COLOR_ # #define _RGB_COLOR_ / /...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online