Skip to main content

clone

function clone(ps: number[][]): number[][]

Defined in transformation/clone.ts:10

Returns a clone of the given bezier curve (with a different reference).

Parameters:​

NameTypeDescription
psnumber[][]a bezier curve given as an ordered array of its control point coordinates, e.g. [[0,0], [1,1], [2,1], [2,0]]