control-point-lines-length
function controlPointLinesLength(ps: number[][]): number
Defined in global-properties/length/control-point-lines-length.ts:14
Returns an upper bound for the length of the given bezier curve - this bound is not very strict as it uses the sum of the straight-line distances between control points as a measure.
Note!
Green circles are draggable!
Parameters:
Name | Type | Description |
---|---|---|
ps | number[][] | an order 0,1,2 or 3 bezier curve given as an array of its control points, e.g. [[1,2],[3,4],[5,6],[7,8]] |