Search code examples
matheigenquaternions

interpolating quaternions at two different times


I have two quaternions at two different times.

q1 t1

q2 t2

I want to find the quaternion in between them at time t_inter by interpolating.

Would it be correct to do:

q_intermediate = slerp(q1,q2, (t_inter-t1)/(t2-t1))

?

I understand slerp takes the percent difference between the times.

EDIT:: I mean the slerp mathematical function defined here: https://en.wikipedia.org/wiki/Slerp


Solution

  • Your question is not clear.

    If your question really means "is it OK to use slerp interpolation for my particular problem", it is impossible to answer unless you specify your problem.

    If your question really means "I want to use slerp interpolation but it takes parameter t in range [0, 1]. Is this the correct way to map my t_inter in the range [t1, t2] to that range?" then the answer is yes, this is the right way.