Circle - Line Intersection not working properly?

后端 未结 1 1855
轻奢々
轻奢々 2021-01-16 09:49

I wrote this circle-line intersection detection after http://mathworld.wolfram.com/Circle-LineIntersection.html, but it appears like it or I am missing something.

         


        
相关标签:
1条回答
  • 2021-01-16 10:30
    float D = p1.X * p2.Y * p2.X - p1.Y;
    

    You've mixed up your operators on this line.

    0 讨论(0)
提交回复
热议问题