intersect

Returns intersecting points between two LineStrings.

Currently only supports primitive LineStrings containing exactly two points each!

Return

A list containing any intersections between line1 and line2, or null if there are no intersections.

Throws

if either LineString does not contain exactly two points