   [Solved]Drawing a Circle in XNA
  Hello everyone,I am currently trying to draw a circle using a set of vertices in my game (primitive type is a triangle fan). Below is the code for calculating each vertex..the center/position of the circle is already calculated:private void calcVertices()   {  //vertices.Add(new VertexPositionColor(position, Color.White));  angle = (float)(Math.PI * 2) / points;  for (int i = 0; i <= points; i++)  { theta = i * angle; x = (float)(position.X + radius * Math.Cos(theta)); y = (float)(position.Y - radius * Math.Sin(theta)); vertices.Add(new VertexPositionColor(new Vector3(x, y, 0),Color.Green));  }   }the circle draws but only a quarter of it. If someone has any ideas your help would be greatly appreciated.[Edited by - dehersh on May 19, 2010 2:31:07 PM]
  Step through the loop with the debugger; what does your list of vertices look like?  Do they form the full circle?  This will help you determine if the problem is in the calculations of the vertices themselves or in the drawing.   ;  I figured it out, after stepping through my code I found out that it was within my draw code. I wasn't setting the right number of triangles to draw. Thanks for your help!