Next: error estimation
Up: quadratic Bézier curve
Previous: quadratic Bézier curve
  Contents
control points choice
Since we want the Bézier curve endpoints to match the elliptical arc
endpoints, finding the first two control points of the quadratic
Bézier curve is done as for linear Bézier curves, :
Matching of the Bézier curve and elliptical arc slopes at start
point allows us to define the remaining control point using one scalar
parameter:
In order to have the same orientation for the elliptical arc and its
approximation,
should be positive. Replacing
by
leads to the simple definition of
:
We find
by stating the Bézier curve slope should also match
the arc slope at end point:
If we have preprocessed our arcs to ensure
, we know that
. This
implies that the orientation is right at both endpoints and also that
can be computed without loss of
accuracy. Equations (3) and (4) show that both
and
are bounded by
, so this preprocessing
also ensures
does not escape far away from points
and
(this could generate numerical overflows in some graphical packages).
Next: error estimation
Up: quadratic Bézier curve
Previous: quadratic Bézier curve
  Contents
Luc Maisonobe
2005-05-29