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!
Parameters:
Name | Type | Description |
---|---|---|
ps | number[][] | 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]] |