get-coeffs-x-from-y
function eGetCoeffsXFromY(ps: number[][], y: number): number[][] | undefined
Defined in x-from-y/expansion/get-coeffs-x-from-y.ts:17
Returns a polynomial whose roots are the x coordinates given the y
coordinate of the given bezier curve.
- the returned coefficients are given exactly as Shewchuk expansions
- this is calculated by swapping the
xandycoordinates of the bezier (i.e. reflecting it in the liney = x) and getting the polynomial whose roots are theycoordinates given thexcoordinate (which is the giveny) of the reflected curve
Parameters:
| Name | Type | Description |
|---|---|---|
ps | number[][] | an order 1, 2 or 3 bezier curve |
y | number | the y coordinate |