get-implicit-form1
function getImplicitForm1(ps: number[][]): object
Defined in implicit-form/double/get-implicit-form1.ts:19
Returns the implicit form of the given linear bezier curve, i.e. line segment.
- 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ᵧ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 line segment given as an array of its control points, e.g. [[1,2],[3,4]] |
Returns: object
Name | Type |
---|---|
vₓ | number |
vᵧ | number |
v | number |