Skip to main content

tangent-at-0

function tangentAt0(ps: number[][]): number[]

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

Returns the tangent vector (not necessarily of unit length) of an order 0,1,2 or 3 bezier curve at t === 0, i.e. returns the result, [x,y], of evaluating the derivative of a linear, quadratic or cubic bezier curve's power basis at t === 0.

  • uses double precision calculations internally

Parameters:

NameTypeDescription
psnumber[][]An order 1,2 or 3 bezier, e.g. [[0,0],[1,1],[2,1],[2,0]]