Академический Документы
Профессиональный Документы
Культура Документы
h> void Circle(float center_x, float center_y, float radius) { float point_x, point_y; int ctr; for (ctr = 0; ctr < 360; ctr += 1) { point_x = radius * cos(ctr * 3.1415926f / 180.0f) + center_x; point_y = radius * cos(ctr * 3.1415926f / 180.0f) + center_y; } } for (double t = 0; t < 2*Pi; t += 0.01) { x = R*cos(t) + x_0; y = R*sin(t) + y_0; }