get-interval-box-dd
function getIntervalBoxDd(ps: number[][], ts: number[][]): number[][][]
Defined in global-properties/bounds/get-interval-box/get-interval-box-dd.ts:59
Returns an axis-aligned-box that is guaranteed to engulf the entire
given bezier curve from t1
to t2
. The returned box is given as an array
of points in double-double precision, e.g. [[[0,1],[0,1]], [[0,2],[0,2]]]
.
- precondition: (to satisfy guarantee) t1 < t2
- precondition: (to satisfy guarantee) t1,t2 >= 0 && t1,t2 <= 1
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]] |
ts | number[][] | parameter values, given in double-double precision, e.g. [[0,0.11], [0,0.12]]. (Use getIntervalBox instead for double precision) |