The first endpoint of segment AB
The second endpoint of segment AB
The first endpoint of segment CD
The second endpoint of segment CD
Optional
options: { Options which affect the intersection test
Return the optional vector distance from C to D on CD
An intersection point, or null if no intersection occurred
An internal helper method for computing the intersection between two infinite-length lines. Adapted from http://paulbourke.net/geometry/pointlineplane/.