Skip to main content

e-normal

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

Defined in local-properties-at-t/normal/expansion/e-normal.ts:16

Returns the exact normal 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