get-bounding-box-tight
function getBoundingBoxTight(ps: number[][]): number[][]
Defined in global-properties/bounds/get-bounding-box-tight.ts:17
Returns a non-certified, rotated, tight bounding box of the given
bezier curve as four ordered points of a rotated rectangle (with each given
as [x,y]
)
Note!
Green circles are draggable!
Parameters:
Name | Type | Description |
---|---|---|
ps | number[][] | an order 1,2 or 3 bezier curve given as an array of its control points, e.g. [[0,0], [1,1], [2,1], [2,0]] |