set-cubic-speeds
function setCubicSpeeds(ps: number[][], s0: number, s1: number): number[][]
Defined in angles-and-speeds/bezier-by-angles-and-speeds/set-cubic-speeds.ts:15
For the given bernstein basis cubic bezier curve return a new cubic bezier curve with its initial and terminal speeds modified.
- only the 2nd and 3rd control points are modified
- call the original curve
Aand the returned curveBthen it will be true thatA[0] === B[0]andA[3] === B[3]
Parameters:
| Name | Type | Description |
|---|---|---|
ps | number[][] | an order 3 (cubic) bezier curve given as an ordered array of its control point coordinates, e.g. [[0,0], [1,1], [2,1], [2,0]] |
s0 | number | |
s1 | number |