circle algorithm question - Printable Version +- Qbasicnews.com (http://qbasicnews.com/newforum) +-- Forum: Qbasic "like" compilers/interpreters (http://qbasicnews.com/newforum/forum-5.html) +--- Forum: FB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-15.html) +--- Thread: circle algorithm question (/thread-9527.html) |
circle algorithm question - Agamemnus - 07-17-2006 Let's say I have a circle. The center has (x, y) coordinates (0, 0). How do I determine the (x, y) coordinates of n points around the circumference of the circle spaced equally apart (along the circumference), assuming we start at a point (0, r), r being the radius? Thanks.... circle algorithm question - Zap - 07-17-2006 Like this? Code: #define PI 3.141592 circle algorithm question - TheAdventMaster - 07-17-2006 This (basically the same as Zap's heheh)? Code: #define PI 3.141592 circle algorithm question - Agamemnus - 07-17-2006 Thanks guys! I needed this for a custom scenario in a Microsoft game called Rise of Legends, btw. |