I am looking for a way to calculate the value of t
of quaternion SLERP by having three quaternions.
Forward direction:
Eigen::Quaternionf q = q1.slerp(t, q2);
where q
, q1
and q2
are quaternions from the Eigen library. And t
is a float which interpolates between q1
and q2
.
I am interested in the backward calculation, where q
, q1
and q2
is given and the output is t.
To make it easier all quaternions are normalized and also lying on the same plane which crosses the origin. See the illustration below:
q
does NOT need to be within q1
and q2
.
I found this link here but I don't know how to use that.
t
. $\endgroup$