curvature
function curvature(ps: number[][]): (t: number) => number
function curvature(ps: number[][], t: number): number
Defined in local-properties-at-t/curvature/curvature.ts:23
Returns the curvature κ of the given linear, quadratic or cubic bezier
curve at a specific given parameter value t.
- returns
Number.NaNat a cusp - this can be tested for withNumber.isNaN - curried: if
tis omitted a function oftis returned instead (the power basis conversion is then only done once which is much faster if the curvature is to be evaluated at manytvalues for the same curve)
Parameters:
| Name | Type | Description |
|---|---|---|
ps | number[][] | an order 1,2 or 3 bezier curve, e.g. [[0,0],[1,1],[2,1],[2,0]] |
t? | number | the parameter value where the curvature should be evaluated (may be omitted, see above) |
function κ(ps: number[][]): (t: number) => number
function κ(ps: number[][], t: number): number
Defined in local-properties-at-t/curvature/curvature.ts:46
Alias for curvature.
Returns the curvature κ of the given linear, quadratic or cubic bezier
curve at a specific given parameter value t.
- alias: curvature
Parameters:
| Name | Type | Description |
|---|---|---|
ps | number[][] | an order 1, 2 or 3 bezier curve, e.g. [[0,0],[1,1],[2,1],[2,0]] |
t? | number | the parameter value where the curvature should be evaluated |
function radiusOfCurvature(ps: number[][]): (t: number) => number
function radiusOfCurvature(ps: number[][], t: number): number
Defined in local-properties-at-t/curvature/curvature.ts:60
Returns the radius of curvature of the given linear, quadratic or cubic
bezier curve at a specific given parameter value t.
- curried: if
tis omitted a function oftis returned instead (see curvature)
Parameters:
| Name | Type | Description |
|---|---|---|
ps | number[][] | an order 1,2 or 3 bezier curve, e.g. [[0,0],[1,1],[2,1],[2,0]] |
t? | number | the parameter value where the radius of curvature should be evaluated (may be omitted, see above) |
function curvatureND(ps: number[][]): (t: number) => [number,number]
function curvatureND(ps: number[][], t: number): [number,number]
Defined in local-properties-at-t/curvature/curvature.ts:81
Returns the numerator and denominator of curvature [N,D], i.e. κ = N/D
of the given linear, quadratic or cubic bezier curve at a specific given
parameter value t.
- curried: if
tis omitted a function oftis returned instead (see curvature)
Parameters:
| Name | Type | Description |
|---|---|---|
ps | number[][] | an order 1,2 or 3 bezier curve, e.g. [[0,0],[1,1],[2,1],[2,0]] |
t? | number | the parameter value (may be omitted, see above) |