In order to handle the relaxed end conditions, we shall need to be able
to tell when a Bézier curve has zero second derivative at one end. Recall
that for a cubic Bézier curve with control points
,
,
,
,
.
This quantity is zero when
, or equivalently, when
.
A similar relation holds in case
. Even more simply:
Observation.
if and only if
is
the midpoint of the segment
;
if and only if
is the midpoint of the
segment
. Some examples are shown in
Figure
.