Type Parameters
- D extends Properties = Properties
Parameters
- a: [VectorPoint<D>, VectorPoint<D>]
- b: [VectorPoint<D>, VectorPoint<D>]
OptionalaRingID: numberOptionalbRingID: number
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).