Добавил:
Angel_of_Death
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:
#include "stdafx.h"
#include "Circle.h"
#include <iostream>
#define _USE_MATH_DEFINES
#include <math.h>
using namespace std;
Circle::Circle():Line()
{
S = 0;
}
void Circle::Square(Line L)
{
S = 3.1415926535 * L.GetLength() * L.GetLength();
}
double Circle::GetSquare()
{
return S;
}
void Circle::View(Point p, Point p1)
{
cout << "Parameters Line: " << endl;
cout << "x = " << p.GetX() << ", " << "y = " << p.GetY() << endl;
cout << "x1 = " << p1.GetX() << ", " << "y1 = " << p1.GetY() << endl;
cout << "S = " << S << endl;
}
Circle::~Circle()
{
}