eval-de-casteljau-with-err-dd
function evalDeCasteljauWithErrDd(ps: number[][], t: number[]): object
Defined in local-properties-at-t/evaluate/double-double/eval-de-casteljau-with-err-dd.ts:30
Returns the resulting point (in double-double precision) of evaluating the
given bezier curve at the given parameter t
(including a coordinate-wise
error bound).
- uses De Casteljau's algorithm in double-double precision floating point arithmetic.
The resulting point is returned as { p: number[][], pE: number[] }
,
where p
is the point [x,y]
(with x
and y
in double-double precision)
and pE
is the corresponding coordinate-wise absolute error bound of the
calculation.
Note!
Green circles are draggable!
Parameters:
Name | Type | Description |
---|---|---|
ps | number[][] | an order 1,2 or 3 bezier curve, e.g. [[0,0],[1,1],[2,1],[2,0]] |
t | number[] | the parameter value where the bezier should be evaluated |
Returns: object
Name | Type |
---|---|
p | number[][] |
pE | number[] |