to-power-basis-dd-with-running-error
function toPowerBasisDdWithRunningError(ps: number[][]): object
Defined in to-power-basis/to-power-basis/double-double/to-power-basis-dd-with-running-error.ts:37
Returns the power basis representation of a bezier curve of order cubic or
less including a coefficient-wise absolute error bound that need to be multiplied
by γγ(3)
- intermediate calculations done in double-double precision
- the error bound need to be multiplied by
γγ(3) === 3.697785493223493e-32
before use - returns the power basis x and y coordinate polynomials from highest power
to lowest, e.g. if
x(t) = at^3 + bt^2 + ct + d
andy(t) = et^3 + ft^2 + gt + h
then the result is returned as[[a,b,c,d],[e,f,g,h]]
, where thea,b,c,...
are in double-double precision
Parameters:
Name | Type | Description |
---|---|---|
ps | number[][] | an order 0,1,2 or 3 bezier curve given by an ordered array of its control points, e.g. [[0,0],[1,1],[2,1],[2,0]] |
Returns: object
Name | Type |
---|---|
coeffs | number[][][] |
errorBound | number[][] |