So needed an algorithm to detect if 2 lines intersect
SAT doesnt work to well for lines, so i decided to see if i could figure out something myself
Remembered from Geometry class that if a quadrilateral is convex, then its diagonals must intersect, and if its concave, then they dont
So i thought: "if quad(line1point1,line2point1,line1point2,line2point2) is convex, then the lines intersect, otherwise no"
But then i thought: "but wouldnt the 'convex-test' algorithm itself need to test if the diagonals intersect?
Aka:
Line intersection algorithm needs a function to determine whether a quad is concave or not
Concave-test algorithm needs a line intersection algorithm to determine if the quads diagonals intersect
Its a paradox
CPU murdering recursion
Help me