Skip to main content

get-x-bounds-tight

function getXBoundsTight(ps: number[][]): XBounds

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

Returns tight x-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]]