Skip to content

distanceToLine

distanceToLine(point, line): number

Shortest distance from a point to line

Parameters

point: number[]

line: number[][]

Returns

number

Source

graphics/geometry.ts:165