utils.linesIntersect()

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.

Signature

Javascript
Point | false utils.linesIntersect(
  Point A, 
  Point B, 
  Point C, 
  Point D
)

Example