Sign in to follow this  

displacing a point by an angle and distance to get a 3rd point

This topic is 4694 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

right. i have point a at (20,20). i have an angle of 45 degrees. i have a distance of 10. how do i displace the point by the distance and angle? [Edited by - fguihen on February 7, 2005 12:45:27 PM]

Share this post


Link to post
Share on other sites
Depends on which angle you're talking about.

If you're talking about angle a, as it looks like from the diagram, then you can't, since the third point is not determined.

You need to know angle c instead, though I can't tell you how to do it off the top of my head.

Share this post


Link to post
Share on other sites
If you want to displace the point 10 units at an angle of 45 degrees, you have to convert 10, 45 degrees into cartesian coordinates. In laymens terms, you have to find out how far away on the X axis and on the Y axis 10, 45 is from your original point. The distance on the X axis is (cos 45) * 10, and the Y is (sin 45) * 10. All you have to do is add the X value to the X axis and the Y value to the Y axis, and then you're set. For posterity, the formula is: X Value + ((cos Angle) * Distance), Y Value + ((sin Angle) * Distance).

Share this post


Link to post
Share on other sites

This topic is 4694 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this