Skip to main content

get-curvature-extrema-dd

function getCurvatureExtremaDd(ps: number[][]): Extrema

Defined in get-curvature-extrema-dd/get-curvature-extrema-dd.ts:40

Returns the parameter t values (in [0,1]) of local minimum / maximum absolute curvature for the given bezier curve.

If there are an infinite number of such t values (such as is the case for a line), an empty array is returned.

  • see MvG's excellent answer on math.stackexchange

Parameters:

NameTypeDescription
psnumber[][]an order 1,2 or 3 bezier curve given as an ordered array of its control point coordinates, e.g. [[0,0], [1,1], [2,1], [2,0]]