line-to-quadratic
function lineToQuadratic(ps: number[][]): number[][]
Defined in transformation/degree-or-type/line-to-quadratic.ts:9
Returns a quadratic bezier from the given line with evenly spaced control points.
Note!
Green circles are draggable!
Parameters:
Name | Type | Description |
---|---|---|
ps | number[][] | a 2d line represented by two points, e.g. [[1,2],[3,4]] |