Skip to main content

max-abs-coordinate

function maxAbsCoordinate(ps: number[][]): number

Defined in error-analysis/max-abs-coordinate.ts:14

Returns the maximum absolute value of the coordinates of the control points of the given bezier curve.

Parameters:

NameTypeDescription
psnumber[][]an order 1,2 or 3 bezier curve given as an ordered array of its control point coordinates, e.g. [[0,0], [1,1], [2,1], [2,0]]