Skip to content

getPointOnPath

getPointOnPath(path, position): number[]

Return a point which is positioned on the path. If position is 0, returns the start point and if position is 1, returns the end point

Parameters

path: number[][]

path

position: number

position value (0 ~ 1) on the path

Returns

number[]

Source

graphics/geometry.ts:819