Skip to main content

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

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

Example

A Utils.linesIntersect() example