The utils.linesIntersect() function finds the intersection between two line segments. Returns a Point object for the intersection, or false if the lines don’t intersect.
utils.linesIntersect()
false
Point | false utils.linesIntersect( Point A, Point B, Point C, Point D )