computeIntersection
Computes the intersection point of two segments.
Return
The intersection point of the two segments.
Parameters
segment1
The first segment.
segment2
The second segment.
Throws
if the segments do not intersect or are collinear.