Skip to main content

to-string

function toString(ps: number[][]): string

Defined in transformation/to-string.ts:10

Returns a 'human readable' string representation of the given bezier curve.

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]]