RGBColor

# RGBColor - #ifndef_RGB_COLOR#define_RGB_COLOR This file...

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

#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

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 02/19/2010 for the course CS 390 taught by Professor Hu during the Spring '10 term at Westminster UT.

### Page1 / 4

RGBColor - #ifndef_RGB_COLOR#define_RGB_COLOR This file...

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

View Full Document
Ask a homework question - tutors are online