ИР
Size: a a a
ИР
r
V
AS
T
V
//point.cppВозможно кто-то сможет посмотреть...буду благодарен\
void Point::MakePolar() {
this->x = sqrt(pow(this->x, 2) + pow(this->y, 2));
this->y = atan(this->y / this->x);
}
void Point::Set_X(double x) {
this->x = x;
}
void Point::Set_Y(double y) {
this->y = y;
}
double Point::Get_X() {
return this->x;
}
double Point::Get_Y() {
return this->y;
}
//project.cpp
void project::on_MakePolar_clicked()
{
RadioButton.MakePolar();
ui->label_result->setText("x = " + QString::number(RadioButton.Get_X()) + " y = " + QString::number(RadioButton.Get_Y()));
}
AS
AS
AS
AS
V
AS
V