Consider cubic spline curves that interpolate given
data points. As we shall discuss below, you can specify two
additional vector conditions. Before, these conditions were
that the second derivative be zero at each end. Instead, we
could make other requirements. One possibility would be to
specify the velocity vector at each end, i.e., to specify
that
v
and to specify that
w
for specific constant vectors
v
w
, instead of
requiring that the second derivative be zero at each end.
These are called ``clamped'' end conditions, because they
force the curve to have a certain tangent direction at each
end, as if they were held with a clamp. Since the ends are
twisted by being clamped, we can no longer assume that the
ends are relaxed.
Analysis of the clamped case.
We can no longer take and
, since these choices are what result in having the second
derivatives be
0 at each end. Therefore there are
points
for which to solve. We need
equations involving points. For
of them, we can just
use
, as before (but now
for
and
as well). For the first
end condition, use the first derivative property of Bézier
curves:
, which here is
. This quantity is to equal
v
.
Therefore an equation is
v
.
Similarly, at the other end an equation is
w
. In matrix form, the equations look
like this (illustrated with
):
The two extra conditions can be used other ways. If
the first and last data points are the same, the two
conditions can be used to equate the first derivatives of
the two ends and also the second derivatives, so that a
``periodic spline curve'' is obtained. Another possibility is
to require the third derivative to be continuous at and
.