to-power-basis-exact
function toPowerBasisExact(ps: number[][]): number[][][]
Defined in to-power-basis/to-power-basis/exact/to-power-basis-exact.ts:26
Returns the exact power basis representation of a bezier curve of order cubic or less.
- returns the resulting power basis x and y coordinate polynomials from
highest power to lowest, e.g. if x(t) = at^2 + bt + candy(t) = dt^2 + et + fthen the result is returned as[[a,b,c],[d,e,f]], where thea,b,c,...are Shewchuk floating point expansions
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]] |