Drawing Images to fit circle
<p>I'm making an inventory screen for a game I'm working on, and I'd like to be able to draw a series of panels representing each item in the inventory. I want to be able to fit those panels on a circular path.
 Here's a mock up I made of what I mean</p>

<p><a href="http://fc02.deviantart.net/fs70/f/2010/280/7/2/khmp_magic_menu_concept_by_magna_alphamon-d30a7em.png" rel="nofollow">http://fc02.deviantart.net/fs70/f/2010/280/7/2/khmp_magic_menu_concept_by_magna_alphamon-d30a7em.png</a></p>

<p>basically I'd like to be able to, give a radius, a center point, and the y co-ordinate to start drawing at, draw this series of panels so they align with the path of the circle like in the image. </p>

<p>Computing the y dimension is easy, its just the startposition y + panel height * panel index, but I'm unsure how to compute the x for a variable radius/center point circle.</p>

<p>Any help would be appreciated. </p>

<p>This is in C#, but something similar in C/C++ will be fine as long as I can convert it</p>

<p>Thanks in advance</p>

<p>EDIT: To calirify, y's position is relative to the top or bottom of the screen and is independent of the circle. If a given y does not map to a point on the circle, then I'll discard that point and not draw the panel. </p>

<p>While ideally I'd like to be able to use any elliptical shape (given two radii), a circle would be good too</p>
