path.intersectionWithLine(line [, opt])
Return an array of the intersection points of the path and the line. Return
null if no intersection exists.
opt argument is optional. Two properties may be specified,
opt.segmentSubdivisions, which determine maximum error allowed in
pointAtLength calculations for curved segments (default precision is 3; this corresponds to maximum observed error of 0.1%). The
opt.segmentSubdivisions property is an array of individual segments' subdivision arrays. The
path.getSegmentSubdivisions() function may be used to obtain the
segmentSubdivisions array. The
opt.precision property is still necessary, however; it determines the precision of the point search algorithm in curved segments.