Skip to main content

tangent-exact

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

Defined in local-properties-at-t/tangent/exact/tangent-exact.ts:16

Returns the exact tangent vector (not necessarily of unit length) of an order 0,1,2 or 3 bezier curve at a specific parameter t, i.e. returns the [x,y] value of the once differentiated (with respect to t) bezier curve's power basis when evaluated at t.

Parameters:

NameTypeDescription
psnumber[][]a linear, quadratic or cubic bezier, e.g. [[0,0],[1,1],[2,1],[2,0]]
tnumberthe t parameter