Circles/Arcs?

vis781

Well-known member
Joined
Aug 30, 2005
Messages
2,016
Location
Cambridge, UK
Programming Experience
5-10
When i was given a project to complete about two days ago i thought.. yea why not. Little did i know it contains my worst enemy.. Maths!!. So i've been trying to figure this one out and i just can't do all this trig stuff. Could someone please help me out with the following.

I need to be able to work out where the center of the arc point 'p' is in, in X,Y co-ordinates from the center of the circle, in the following diagram. Problem is i need the formula because the size of the circle will change

gon1.gif

Thanks.
 
I beleive vis781 means to calculate the co-ordinates of the point P given the angle t and the radius of the circle r.
If that's true, use the following formula where Px is the X co-ordinate and Py is the Y co-ordinate:

Px = r * Cos(t)
Py = r * Sin(t)
 
Back
Top