Maths is maths after all.
And then there's bad maths, as demonstrated in the function I posted. Oh, and sswift's which doesn't even work. :PFor my current needs I just needed to know if an intersection occured, and if so, the coords of that intersection.