Skip to main content

is-cubic-really-quad

function isCubicReallyQuad(ps: number[][]): boolean

Defined in global-properties/classification/is-cubic-really-quad.ts:25

Returns true if the given cubic bezier curve is really a quadratic (or lower order) curve in disguise, i.e. it can be represent by a quadratic bezier curve, false otherwise.

  • exact: not susceptible to floating point round-off
Note!
Green circles are draggable!
0
Note!
Green circles are draggable!
0

Parameters:

NameTypeDescription
psnumber[][]an order 0,1,2 or 3 bezier curve given as an array of its control points, e.g. [[1,2],[3,4],[5,6],[7,8]]