Documentation / @ripl/terminal / flattenQuadBezier
Function: flattenQuadBezier()
flattenQuadBezier(
x0,y0,cpx,cpy,x1,y1):Vertex[]
Defined in: terminal/src/algorithms.ts:225
Samples a quadratic bezier curve into a polyline of points (inclusive of both endpoints).
Parameters
| Parameter | Type |
|---|---|
x0 | number |
y0 | number |
cpx | number |
cpy | number |
x1 | number |
y1 | number |
Returns
Vertex[]