Skip to content

getPointOnLine

getPointOnLine(point1, point2, position): number[]

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

Parameters

point1: number[]

line start point

point2: number[]

line end point

position: number

position value (0 ~ 1) on the path

Returns

number[]

Source

graphics/geometry.ts:801