Jump to content

Angle between two quaternions


Fidelis

Recommended Posts

Hello guys!

I have two quaternions with norm equal to 1. Both are represented in the angle-phase form, i.e, I have q=exp(i*\phi)exp(k*\psi)exp(j*\theta) and p=exp(i*\phi')exp(k*\psi')exp(j*\theta'). Let \alpha be the angle between q and p. I need to write \alpha in function of \phi-\phi', \psi-\psi' and \theta-\theta' in a simple way. Could anyone give me some idea?

 

Link to comment
Share on other sites

Given two unit quaternions, [math]p[/math] and [math]q[/math], you can always find another unit quaternion [math]r[/math] such that [math]rq=p[/math] which represents the amount you need to move [math]q[/math] to match [math]p[/math]. Solving for [math]r[/math] gives:

 

[math]r = pq^{-1} = p~ \textup{Conj}(q)[/math]

 

The angle between [math]p[/math] and [math]q[/math] is the angle of [math]r[/math], which is given by:

 

[math]\alpha =2 \textup{cos}^{-1}(\textup{Re}(r )) =2 \textup{cos}^{-1}(\textup{Re}(p~ \textup{Conj}(q)))[/math]

Edited by elfmotat
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.