|
@@ -14,8 +14,17 @@ class Circle: public Figure
|
|
|
}
|
|
|
|
|
|
public:
|
|
|
- Circle(double center_x, double center_y, double radius);
|
|
|
- Circle(struct Point center, double radius);
|
|
|
+ template <typename T>
|
|
|
+ Circle(T center_x, T center_y, T radius)
|
|
|
+ {
|
|
|
+ init(center_x, center_y, radius);
|
|
|
+ }
|
|
|
+
|
|
|
+ template <typename T>
|
|
|
+ Circle(struct Point center, T radius)
|
|
|
+ {
|
|
|
+ init(center.x, center.y, radius);
|
|
|
+ }
|
|
|
|
|
|
double calc_area();
|
|
|
double calc_perimiter();
|