Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / plotting points on a circle

Author
Message
Dracula
18
Years of Service
User Offline
Joined: 7th Aug 2006
Location: DBP Recreation of Castle Csejthe
Posted: 2nd Dec 2006 17:49
I know that C=3.14 * radius squared, but can someone help me with a formula to plot points on a circle?

Thanks!!!

D
TEH_CODERER
20
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 2nd Dec 2006 21:06
Are you saying that C is area? Area=pi*r^2 but cirumference=2*pi*r. There are a couple of ways. Firstly, as the graph of a circle is y^2+x^2=r^2 you can use if statements to check points are on the circle. The alternative is to use sin/cos.
Using 1st idea:

Using 2nd idea:

Hope that helps.

Dracula
18
Years of Service
User Offline
Joined: 7th Aug 2006
Location: DBP Recreation of Castle Csejthe
Posted: 3rd Dec 2006 04:15
awsome!!! Thanks TEH_CODERER
TEH_CODERER
20
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 3rd Dec 2006 17:19
No probs! Glad I could help.

Login to post a reply

Server time is: 2024-09-25 13:35:36
Your offset time is: 2024-09-25 13:35:36