Skip to main content

tangent

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

Defined in local-properties-at-t/tangent/double/tangent.ts:18

Returns the tangent vector (not necessarily of unit length) of an order 0,1,2 or 3 bezier curve at a specific given parameter value 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.

  • uses double precision calculations internally
Note!
Green circles are draggable!
0

Parameters:

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