Sprotty
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Function.Intersection

sprotty / intersection

Function: intersection()

intersection(l1, l2): Point

Defined in: packages/sprotty/src/utils/geometry.ts:251

Returns the intersection of two lines l1 and l2

Parameters

l1

Line

A line

l2

Line

Another line

Returns

Point

The intersection point of l1 and l2