Skip to content

findNearestOnPath

findNearestOnPath(p, path, distance): number[] | null

Find nearest point on path

Parameters

p: number[]

path: number[][]

distance: number

Returns

number[] | null

nearest point on path

Source

graphics/geometry.ts:290