line.intersect(shape)

Return an array of the intersection points of the line with another geometry shape.

A single intersection point is returned, when the shape is a line.

Return null if no intersections are found.