This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Slerp for unit quaternions

Tags: None
(comma "," separated)
User avatar
nocnokneo
Registered Member
Posts
3
Karma
0
OS

Slerp for unit quaternions

Tue Mar 18, 2014 2:08 pm
I'm looking at the implementation of the slerp function in eigen3 (https://bitbucket.org/eigen/eigen/src/0 ... ult#cl-681). For unit quaternions it doesn't seem to match the Wikipedia page that it references (https://en.wikipedia.org/wiki/Slerp). Is there a reason that something like
Code: Select all
slerp(q0,q1,t) = q0 * (q0^-1 * q1 )^t
is not used?
User avatar
nocnokneo
Registered Member
Posts
3
Karma
0
OS

Re: Slerp for unit quaternions

Tue Apr 22, 2014 1:27 pm
Is this the best place to ask this sort of question, or is there something like a developers mailing list that would be more appropriate?
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: Slerp for unit quaternions

Tue Apr 22, 2014 2:35 pm
Actually, the implementation of q0 * (q0^-1 * q1 )^t boils down to the code you saw in eigen3 with some additional considerations on numerical accuracy. See this wikipedia page for the power of a quaternion: http://en.wikipedia.org/wiki/Quaternion ... _and_power
User avatar
nocnokneo
Registered Member
Posts
3
Karma
0
OS

Re: Slerp for unit quaternions

Wed Apr 23, 2014 12:12 am
That makes sense. Thanks for the explanation!


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], rblackwell