Skip to main content

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 monomial vₓᵧ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!
0

Parameters:

NameTypeDescription
psnumber[][]a line segment given as an array of its control points, e.g. [[1,2],[3,4]]

Returns: object

NameType
vₓnumber
vᵧnumber
vnumber