generate-arc-from-quads
function generateArcFromQuads(c: number[], p1: number[], p2: number[]): number[][][]
Defined in create/generate-arc-from-quads.ts:47
Returns an arc approximation using unit eighth circle quadratic bezier curves. The result is returned as an array of quadratic bezier curves.
- if the last returned arc is approximately smaller than 2**-40 of a quarter circle it is not added to the returned value
- if the last returned arc is approximately (1 - 2**-40) of a quarter circle a full quarter circle is added to the returned value
Parameters:
| Name | Type | Description |
|---|---|---|
c | number[] | arc circle center |
p1 | number[] | arc goes from this point |
p2 | number[] | to a point on a line from c to this point (since the problem is over-specified) (if p1 and p2 lies on a line through c a full circle is generated using 8 quadratic bezier curves) |