Skip to main content

from-to-incl-error-bound

function fromToInclErrorBound(ps: number[][], tS: number, tE: number): object

Defined in transformation/split/from-to-incl-error-bound.ts:24

Returns a bezier curve, ps, that starts and ends at the given t parameters (starting at tS and ending at tE) including a matching coordinate-wise error bound, _ps, that needs to be multiplied by 3u, 5u or 8u (for lines, quadratic or cubic bezier curves respectively) before use, where u === Number.EPSILON/2.

Note!
Green circles are draggable!
0

Parameters:

NameTypeDescription
psnumber[][]an order 0,1,2 or 3 bezier curve given as an ordered array of its control point coordinates, e.g. [[0,0], [1,1], [2,1], [2,0]]
tSnumberthe t parameter where the resultant bezier should start
tEnumberthe t parameter where the resultant bezier should end

Returns: object

NameType
psnumber[][]
_psnumber[][]