DeCasteljau {qsplines} | R Documentation |
Spline using the De Casteljau algorithm
Description
Constructs a quaternions spline using the De Casteljau algorithm.
Usage
DeCasteljau(
segments,
keyTimes = NULL,
n_intertimes,
times,
constantSpeed = FALSE
)
Arguments
segments |
a list of vectors of unit quaternions; each segment must contain at least two quaternions |
keyTimes |
the times corresponding to the segment boundaries, an
increasing vector of length |
n_intertimes |
a positive integer used to linearly interpolate the
times given in |
times |
the interpolating times, they must lie within the range of
|
constantSpeed |
Boolean, whether to re-parameterize the spline to
have constant speed; in this case, |
Value
A vector of quaternions whose length is the number of interpolating times.
Note
This algorithm is rather for internal purpose. It serves for example as a base for the Konachek-Bartels algorithm.