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

Function.Center of Line

sprotty-protocol / centerOfLine

Function: centerOfLine()

centerOfLine(s, e): Point

Defined in: utils/geometry.ts:193

Computes the center of the line segment spanned by the two given points.

Parameters

s

Point

Start point of the line

e

Point

End point of the line

Returns

Point