public void CreateCircle(float radius, int sides)
{
mVectors.Clear();
float max = 2 * (float)System.Math.PI;
float step = max / (float)sides;
for (float theta = 0; theta < max; theta += step)
{
mVectors.Add(new Vector2(radius * (float)System.Math.Cos((double)theta),
radius * (float)System.Math.Sin((double)theta)));
}
// then add the first vector again so it's a complete loop
mVectors.Add(new Vector2(radius * (float)System.Math.Cos(0),
radius * (float)System.Math.Sin(0)));
}