#include <circle.h>
Inheritance diagram for Circle:
Public Member Functions | |
Circle (int r, int x, int y) | |
Circle (int r, Point c) | |
virtual std::string | getType () const |
virtual double | getArea () const |
Circle::Circle | ( | int | r, | |
int | x, | |||
int | y | |||
) |
Overloaded constructor that takes in a radius and an (x,y) coordinate.
r | The radius of the circle (must be greater than 0) | |
x | The X coordinate of the circle's center point in 2D space | |
y | The Y coordinate of the circle's center point in 2D space |
Circle::Circle | ( | int | r, | |
Point | c | |||
) |
Overloaded constructor that takes in a radius and a center Point.
r | The radius of the circle (must be greater than 0) | |
c | The center point of the circle in 2D space |
string Circle::getType | ( | ) | const [virtual] |
double Circle::getArea | ( | ) | const [virtual] |