Float pi = 3.1415926f;
double[] x1 = new double[12];
double[] y1 = new double[11];
for (int i = 0; i <= 11; i++)
{
x1[i] = -1 * Math.Cos(i * pi / 5);
y1[i] = Math.Sin(i * pi / 5);
}
for (int count = 0; count <= 11; count++)
{
ggr.DrawLine(new Pen(Color.Black), x, y, (float)x1[count], (float)y1[count]);
}
|