Defined in:Approximates a cubic Bézier curve with a set of quadratic Bézier curves.
int32 CalculateQuadraticApproximation(float tolerance, QuadraticBezier2D *curveArray) const;
||The approximate maximum distance allowed between the input cubic curve and the output set of quadratic curves.|
||A pointer to an array where the quadratic Bézier curves are returned. This array must be large enough to hold 12 curves.|
CalculateQuadraticApproximationfunction generates between one and twelve quadratic Bézier curves that approximate a single cubic Bézier curve within a given tolerance.
The return value is the number of quadratic curves that were generated, which is never greater that
kMaxQuadraticCurveCount, defined to be 12. The maximum number of quadratic curves is generated only in extreme cases, and the typical number is around three or four.