Skip to main content

from-to

function fromTo(ps: number[][], tS: number, tE: number): number[][]

Defined in transformation/split/from-to.ts:20

Returns a bezier curve that starts and ends at the given t parameters.

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