get-coeffs-x-from-y
function getCoeffsXFromY(ps: number[][], y: number): number[] | undefined
Defined in x-from-y/double/get-coeffs-x-from-y.ts:16
Returns a polynomial whose roots are the x coordinates given the y
coordinate of the given bezier curve.
- 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 |