flip-vertically
function flipVertically(ps: number[][]): number[][]
Defined in transformation/affine/flip-vertically.ts:13
Returns the given bezier curve flipped vertically (mirrored top-to-bottom) about the x-axis, i.e. each control point [x,y] is mapped to [x,-y].
0
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]] |