Skip to main content

generate-cusp-at-half-t

function generateCuspAtHalf3(p0: number[], pz: number[], pE: number[]): number[][]

Defined in create/generate-cusp-at-half-t.ts:15

Returns the cubic bezier curve control points with a zero tangent vector (i.e. [0,0]) at t = 0.5 (i.e. a 'cusp') at the given point with given starting and ending control points.

  • non-exact: due to floating-point round-off the cusp is not necessarily exactly at the given point, nor does the tangent vector necessarily vanish exactly.
Note!
Green circles are draggable!
0

Parameters:

NameTypeDescription
p0number[]the bezier start point
pznumber[]the point at which the vanishing tangent should occur
pEnumber[]the bezier end point