View source: R/KochanekBartels.R
DeCasteljau | R Documentation |
Constructs a quaternions spline using the De Casteljau algorithm.
DeCasteljau( segments, keyTimes = NULL, n_intertimes, 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 |
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, |
A vector of quaternions whose length is the number of interpolating times.
This algorithm is rather for internal purpose. It serves for example as a base for the Konachek-Bartels algorithm.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.