DeCasteljau {qsplines} | R Documentation |
Constructs a quaternions spline using the De Casteljau algorithm.
DeCasteljau(segments, keyTimes = NULL, times, constantSpeed = FALSE)
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 |
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, |
A vector of quaternions having the same length as times
,
or a function if constantSpeed=TRUE
.
This algorithm is rather for internal purpose. It serves for example as a base for the Konachek-Bartels algorithm.