Note that there are some explanatory texts on larger screens.

plurals
  1. PODo two line segments intersect in c# or vb.net using xna?
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COIt seems to me the 'parallel lines' case would need to be treated separately. All other intersection algorithms would test for a single point of intersection. I'd expect the parallel case would be fairly trivial to solve, though. How often do you expect precise parallel lines, though? That's nigh impossible if you're using floating-point values to represent lines. EDIT: Actually, the top solution given in the question you posted provides a solution for that case, too. Look for the part where he gives an inequality that tests for colinearity.
      singulars
    2. COIf I am honest, reading the top answer of that question. I get lost on the second sentence... I don't think I would not be able to organise any of what he is saying into usable code without seriously studying some maths... I have enough on my plate with programming atm. I think I have found an a suitable method, which although doesn't solve the parallel lines problem, does make it easy for me to cobble something together... I will post it here when its done.
      singulars
    3. COAlright. I can also try posting an answer here later that should help explain how to translate the math into code. I think you'll find it's not as difficult as it looks! :)
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload