Skip to main content

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!
0

Parameters:

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