Skip to main content

get-t-at-length

function getTAtLength(ps: number[][], s: number): number

Defined in local-properties-to-t/get-t-at-length.ts:15

Returns the t parameter value where the given bezier curve reaches the given length s starting from t = 0 and clipping at t = 1.125.

Note!
Green circles are draggable!
0

Parameters:

NameTypeDescription
psnumber[][]an order 0,1,2 or 3 bezier curve given by an ordered array of its control points, e.g. [[0,0],[1,1],[2,1],[2,0]]
snumberthe length