powered by
Linearly interpolate an increasing vector of times. This is useful to deal with the quaternions splines.
interpolateTimes(times, n, last = TRUE)
A vector, a refinement of the times vector.
times
increasing vector of times
integer, controls the number of interpolations: there will be n-1 time values between two consecutive original times
n-1
Boolean, whether to include or exclude the last element
library(qsplines) interpolateTimes(1:4, n = 3) interpolateTimes(c(1, 2, 4), n = 3)
Run the code above in your browser using DataLab