Skip to main content

get-implicit-form2-dd

function getImplicitForm2Dd(ps: number[][]): object

Defined in implicit-form/double-double/get-implicit-form2-dd.ts:28

Returns a double-double precision implicit form of the given quadratic bezier curve and a coefficientwise error bound. Returned coefficients are subscripted to match their monomial's variables, e.g. vₓᵧ is the coefficient of the monomial vₓᵧxy

  • the implicit form is given by: vₓₓx² +vₓᵧxy + vᵧᵧy² + vₓx + vᵧy + v = 0
  • intermediate calculations are done in double-double precision
  • adapted from Indrek Mandre
Note!
Green circles are draggable!
0

Parameters:

NameTypeDescription
psnumber[][]a quadratic bezier curve given as an array of its control points, e.g. [[1,2],[3,4],[5,7]]

Returns: object

NameType
vₓₓnumber[]
vₓᵧnumber[]
vᵧᵧnumber[]
vₓnumber[]
vᵧnumber[]
vnumber[]