Skip to main content

Home > @jsplumb/util > lineIntersection

lineIntersection() function#

Compute the intersection of the two lines.

Signature:

export declare function lineIntersection(l1: LineXY, l2: LineXY): PointXY | null;

Parameters#

ParameterTypeDescription
l1LineXY
l2LineXY

Returns:

PointXY | null

A point if an intersection found, null otherwise.