scale
function scale(ps: number[][], s: number): number[][]
Defined in transformation/affine/scale.ts:17
Returns the given bezier curve scaled about the origin by the given factor.
- to scale about another point, first
translatethe curve, scale, then translate back - uses double precision calculations internally
Note!
Green circles are draggable!
Parameters:
| Name | Type | Description |
|---|---|---|
ps | number[][] | an order 0,1,2 or 3 bezier curve given as an ordered array of its control point coordinates, e.g. [[0,0], [1,1], [2,1], [2,0]] |
s | number | the scale factor |