for (int i = 0; i < 5; ++i) { points[i * 2] = new PointF((float)Math.Cos(Math.PI * 2 * i / 5.0), (float)Math.Sin(Math.PI * 2 * i / 5.0)); } for (int i = 0; i < 5; ++i) { points[i * 2 + 1] = points[(i * 2 + 4) % 10]; }