get-implicit-form2
function getImplicitForm2(ps: number[][]): object
Defined in implicit-form/double/get-implicit-form2.ts:18
Returns the implicit form of the given quadratic bezier curve.
- returned coefficients are subscripted to match their monomial's variables,
e.g.
vₓᵧ
is the coefficient of the monomialvₓᵧ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 precision
- adapted from Indrek Mandre
Note!
Green circles are draggable!
Parameters:
Name | Type | Description |
---|---|---|
ps | number[][] | a quadratic bezier curve given as an array of its control points, e.g. [[1,2],[3,4],[5,7]] |
Returns: object
Name | Type |
---|---|
vₓₓ | number |
vₓᵧ | number |
vᵧᵧ | number |
vₓ | number |
vᵧ | number |
v | number |