Jump to content
  • Advertisement
Sign in to follow this  
dessler.michelle

Need help finding the points positions

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

Hi there,

I've two circles defined by their positions BS1 and BS2.

Now I need to get the position of the point A and the only data I've is the distance from point BS1 that is defined by its radius.

Can someone please tell me how can I find the coordiinates of point A?

Here you can see a representation of the problem I need to solve http://imageshack.us/photo/my-images/542/002yw.png/

Thank you very much

PD: I need to do the same with point B.

Share this post


Link to post
Share on other sites
Advertisement
Vector center_to_center = BS1-BS2;
Vector direction = center_to_center / length(center_to_center);
Point A = BS1 + direction * R1; // R1=1 in your example
Point B = BS2 - direction * R2; // R2 = 3 in your example

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!