Well, the equation of a circle with radius R on the origin is

All you have to do is test if this inequality is true or false :

If it is true the point (x,y) is in the circle, if it is equal it is on the circle, else it lies outside the circle.
It should be rather easy to write that in C#.
Reputation Points: 2035
Solved Threads: 644
Senior Poster
Offline 3,738 posts
since Oct 2008