the first segment
the second segment
Optional
aRingID: numberthe ring id of the first segment if provided
Optional
bRingID: numberthe ring id of the second segment if provided
a point if the segments intersect where the intersection occurs, otherwise undefined
Find the intersection of two segments. A more robust approach that uses predicates to ensure no false positives/negatives
NOTE: If the segments are touching at end points, they PASS in this function. However, the caviat is that if the segments are coming from the same ring, then the result will be undefined (not considered an intersection).