Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

luzop

what does represent quaternions addition?

This topic is 5281 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I know that if q1 and q2 indicate rotations, then q2q1 represents the composite rotation of q1 followed by q2. but what about addition?

Share this post


Link to post
Share on other sites
Advertisement
Addition will in general result in non-unit quaternions which don''t then represent pure rotations. It doesn''t have any intuitive geometric interpretation.

Q1 = w1 + x1 * i + y1 * j + z1 * k
Q2 = w2 + x2 * i + y2 * j + z2 * k

Q1 + Q2 = (w1 + w2) + (x1 + x2) * i + (y1 + y2) * j + (z1 + z2) * k

So by itself not particularly useful. Addition is used in interpolation where the quaternions are carefully scaled to end up being unit length.

Share this post


Link to post
Share on other sites
thank you.


I have been seeing some codes of physical
simulations where use sum of quaternions.

For example.

orientation + = angular_velocity * orientation * (step * 0.5f);

or similar with the Runge-Kutta method.
(here my doubt arises)

Share this post


Link to post
Share on other sites
Mathematically the addition is perfectly well defined, and whatever derivations you are seeing are (probably ) correct.

There isn''t any nice geometric way of visualizing the addition though, so it''s best not to waste too much time on trying and accept that the math works (or go through the derivations and convince yourself you wind up with unit quaternions where you are using them for rotations).

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!