Checking line segment intersection

BlitzPlus Forums/BlitzPlus Programming/Checking line segment intersection

supermeerkat(Posted 2005) [#1]
Hi Guys

If I have two lines whose coordinates are defined by

L1: (x1,y1) (x2,y2)
L2: (x3,y3) (x4,y4)

What do I need to do to see if they intersect?


WolRon(Posted 2005) [#2]
I'm pretty sure that there is at least one line intersection algorithm in the code archives...


supermeerkat(Posted 2005) [#3]
D'oh! Of course.

Thanks for pointing that out!