to-cubic
function toCubic(ps: number[][]): number[][]
Defined in transformation/degree-or-type/to-cubic.ts:18
Returns a cubic bezier curve that is equivalent to the given linear or quadratic bezier curve. Cubics are just returned unaltered.
This function simply uses lineToCubic
or quadraticToCubic
internally.
Note!
Green circles are draggable!
Parameters:
Name | Type | Description |
---|---|---|
ps | number[][] | an order 0,1,2 or 3 bezier curve given as an ordered array of its control point coordinates, e.g. [[0,0],[1,1],[2,1],[2,0]] |