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!
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]] |