Jump to content
  • Advertisement
Sign in to follow this  
Prog101

Finding the X and Y position on a Circle

This topic is 3319 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i am having a little trouble finding the X and Y positon on a Circle, the centre of the circle is 256 x and 256 y the radius of the circle is 150 i have 3 points i need to work out the 1st is p0 = 256x 256y the 2nd is p1 = 256x 406y the 3rd is p2 = ?x ?y the angle between p1 and p2 = 45 degrees does anyone know howi can work out the x and y of p2?

Share this post


Link to post
Share on other sites
Advertisement
x = x_center + cos(alpha)*radius = 362.06601717798212866
y = y_center + sin(alpha)*radius = 362.06601717798212866

Remember that you should express alpha in radians.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!