Skip to content

findNearestOnLine

findNearestOnLine(p, line): number[]

Find nearest point on line

Parameters

p: number[]

line: number[][]

Returns

number[]

nearest point on line

Source

graphics/geometry.ts:271