line.intersect(l)

Return the intersection point of the line with another line l. A rectangle can also be passed in as the parameter, in which case, an array of intersection points with the line is returned. Return null if there is no such point.