圆形坐标的问题~
怎么样取得窗体中一个圆的坐标集合?用什么公式?
------解决方案--------------------private void Form1_Paint(object sender, PaintEventArgs e)
{
int j = 0, r = 50, x0 = 100, y0 = 200;
int x, y;
Pen pen = new Pen(Color.White, 1);
for (int i = 0; i < 1; i++)
{
j -= 12;
x = Convert.ToInt32(x0 + r * Math.Cos(j / (360 / Math.PI)));
y = Convert.ToInt32(y0 + r * Math.Sin(j / (360 / Math.PI)));
Point point1 = new Point(x0, y0);
Point point2 = new Point(x, y);
e.Graphics.DrawLine(pen, point1, point2);
}
}