Skip to main content

evaluate-exact

function evaluateExact(ps: number[][], t: number): number[][]

Defined in local-properties-at-t/evaluate/exact/evaluate-exact.ts:18

Returns the exact resulting point of evaluating the given bezier curve at the given t parameter.

  • the result is returned as [x,y], where x and y are Shewchuk floating point expansions
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]]
tnumber