Jump to content
  • Advertisement

Saber Rules

Member
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

122 Neutral

About Saber Rules

  • Rank
    Newbie
  1. Saber Rules

    Intersection of a line and a circle

    Got it working, thanks for the help!
  2. I'm trying to locate a function written in C or C++ that will give me the intersection points of a line and a circle. I've downloaded several math libraries and have been googling most of the day. The closest I've gotten to my goal is this: http://intervision.hjem.wanadoo.dk/tech1002.htm The problem is that this code is written in Lisp and I'm having a hard time translating it into C. It appears to do exactly what I want but I'm not confident that I will translate it correctly and will end up spending more hours debugging it only to never get it working at all. Does anyone know where I can find some 2D line/circle intersection code in C/C++ that will give me the point(s) of intersection? Preferably platform-independent and library independent.
  • 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!