Skip to main content

dd-get-coeffs-x-from-y

function ddGetCoeffsXFromY(ps: number[][], y: number): number[][]

Defined in x-from-y/double-double/dd-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 x and y coordinates of the bezier (i.e. reflecting it in the line y = x) and getting the polynomial whose roots are the y coordinates given the x coordinate (which is the given y) of the reflected curve

Parameters:

NameTypeDescription
psnumber[][]an order 1, 2 or 3 bezier curve
ynumberthe y coordinate