quadratic-to-cubic
function quadraticToCubic(ps: number[][]): number[][]
Defined in transformation/degree-or-type/quadratic-to-cubic.ts:14
Returns the cubic version of the given quadratic bezier curve (by degree elevation).
- quadratic bezier curves can always be represented exactly by cubics - the converse is false
Note!
Green circles are draggable!
Parameters:
Name | Type | Description |
---|---|---|
ps | number[][] | a quadratic bezier curve given as an ordered array of its control point coordinates, e.g. [[0,0], [1,1], [2,1]] |