total-curvature
function totalCurvature(ps: number[][], interval?: number[]): number
Defined in global-properties/total-curvature.ts:19
Returns the total curvature of the bezier over the given interval.
- the result is given in radians.
Note!
Green circles are draggable!
Parameters:
| Name | Type | Default value | Description |
|---|---|---|---|
ps | number[][] | - | a cubic bezier, e.g. [[0,0],[1,1],[2,1],[2,0]] |
interval | number[] | [0,1] | the interval of integration (often === [0,1]) |
Returns: number