Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

timmie

Intersection between 2 arcs

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

Does anyone know a good algorithm for finding the intersection(s) between 2 arcs (2D, not 3D)?

Share this post


Link to post
Share on other sites
Advertisement
What kind of arcs are these? Can they be described as partial arcs of circles or elipses? If so, then there are specials equations that exist for rotated elipses that you can probably use. But because they aren''t straight lines, it''s a bit more involved to get an exact intersection.

Hopefully someone can fill in the details, I''m in a small rush

Share this post


Link to post
Share on other sites
suppose your two arcs are both quadratic functions
y = A1*x*x + B1*x + C1
y = A2*x*x + B2*x + C2

(A1-A2)*x*x + (B1-B2)*x + C1-C2 = 0

solve normally and plug the solution for x into either function for y

Share this post


Link to post
Share on other sites

  • 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!