|
@@ -5,6 +5,14 @@ class Circle: public Figure
|
|
|
private:
|
|
|
double centerX, centerY, Radius;
|
|
|
|
|
|
+ template <typename T>
|
|
|
+ void init(T center_x, T center_y, T radius)
|
|
|
+ {
|
|
|
+ centerX = double(center_x);
|
|
|
+ centerY = double(center_y);
|
|
|
+ Radius = double(radius);
|
|
|
+ }
|
|
|
+
|
|
|
public:
|
|
|
Circle(double center_x, double center_y, double radius);
|
|
|
Circle(struct Point center, double radius);
|