View source: R/quaternions_splines_shared.R
interpolateTimes | R Documentation |
Linearly interpolate an increasing vector of times. This is useful to deal with the quaternions splines.
interpolateTimes(times, n, last = TRUE)
times |
increasing vector of times |
n |
integer, controls the number of interpolations: there will be
|
last |
Boolean, whether to include or exclude the last element |
A vector, a refinement of the times
vector.
library(qsplines) interpolateTimes(1:4, n = 3) interpolateTimes(c(1, 2, 4), n = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.