View Single Post
Old Jul 25th, 2005, 6:43 PM   #1
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,840
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
The Function Of A Circle.

For part of my Graphical User Interface, I require the ability to draw custom circles. What I need to know is, given an X position of the outside curve of a circle, what equation determines the two Y values?

Please pardon my inexperience in high school math, as I'll need to know the complete equation if possible.

Thankyou in advance.


Edit, I made a circle and these are the co-ordinates for the bottom right curve, where x=0 and y=0 at the bottom most point.

x|y
0|0
1|0 
2|1
3|1 
4|1 
5|2
6|3
7|4
7|5
7|6
8|7
8|8

But I can't exactly find a simple function out of that, at least by my limited methods of solving for quadratics, etc...
Sane is offline   Reply With Quote