Home > @jsplumb/util > lineIntersection
#
lineIntersection() functionCompute the intersection of the two lines.
Signature:
export declare function lineIntersection(l1: LineXY, l2: LineXY): PointXY | null;
#
ParametersParameter | Type | Description |
---|---|---|
l1 | LineXY | |
l2 | LineXY |
Returns:
PointXY | null
A point if an intersection found, null otherwise.