Skip to content

generatePath

generatePath(start, end, rectilinear): number[][]

Generate a path from start point to end point

Parameters

start: number[]

end: number[]

rectilinear: boolean= false

generated path is rectilinear

Returns

number[][]

Returns a path

Source

graphics/geometry.ts:595