#ifndef CIRCLE_H #define CIRCLE_H #include using namespace::std; class circle { public: void setX( double xV ); void setY( double yV ); void setR( double rV); void set(double value, char whichOne); // use 'x' for x, use 'y' for y // and use 'r' for radius double getX(void) const; double getY(void) const; double getR(void) const; double get(char whichOne) const; // use 'x' for x, use 'y' for y // and use 'r' for radius void print(ostream & w) const; double area(void) const; void input(void); circle move( double xC, double yC) const; // return a circle formed from // the invoking instance by: // keep the same radius, adjust the x and y // of the center by the xC and yC amounts circle reSize(double rC) const; // return a circle formed from // the invoking instance by: // keep the same center // adjust the radius by rC bool isInside(const circle & inner) const; // return true if the parameter // circle inner is completely inside // the invoking instance, return // false otherwise private: double x, y, radius; }; #endif