Post

 Resources 

Console


RE: Circle Formula Rag on a Stick (4 replies, 0 views) (2000-Aug-29)
-
The easiest and faster ways would be to use the api calls like the method .Circle or the DirectDraw thing .DrawCircle The actual formula for a circle is this: x ^ 2 + y ^ 2 = r ^ 2 this will draw a circle of radius r around (0, 0), then to move the circle, just make the formula (x - Xpos) ^ 2 + (y - Ypos) ^ 2 = r ^ 2 I think Then just cycle through the possible values for x and y, and if they satisfy the equation then draw a dot there. This will probably be slow, unless you do a fair bit of optimisation. Yeah hth


-
Up One Level | Back to Forum

RE: Circle Formula LazE (3 replies) (2000-Aug-29)
RE: Circle Formula Corre (2 replies) (2000-Aug-29)
Thanks Corre! *NT* LazE (0 replies) (2000-Aug-29)
Another thing to try... Rag on a Stick (0 replies) (2000-Aug-30)

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.
There have been 203 visitors within the last 20 minutes
RSS News Feed