Skip to main content

get-y-bounds-tight

function getYBoundsTight(ps: number[][]): YBounds

Defined in global-properties/bounds/get-y-bounds-tight.ts:15

Returns tight y-coordinate bounds of the given bezier curve.

Note!
Green circles are draggable!
0

Parameters:

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