Also known as alphabet soup. Lots of algebra going on here, but the idea is to derive a function that will detect when two lines intersect. There's a lot more here than you need to know if you just want to copy and paste a function. But assuming you want to learn how that function works, watch this video a few times until all those letters I'm shouting out start to make sense. It took me a while.
Support Coding Math: / codingmath
Source Code: http://github.com/bit101/codingmath