Forums like these give me faith in humanity.I am busy with little

  • Thread starter The Sparrow
  • Start date
In summary, the author of this article provides a brief overview of rotations and quaternions, and offers some advice on how to convert between rotations and quaternions.
  • #1
The Sparrow
9
0
Forums like these give me faith in humanity.

I am busy with little project and I've just come out of angular physics after taking a deep breath only to have my head pushed back into the black deep waters of quaternions. I thought having the angular velocity is all I need, and I simply had to add the angular velocity to the current orientation for the rotation to work. "NOPE!" laughed whatever god was in charge of rotational maths, "Now suffer" he uttered the words. The god of mercy gave me this site, and I hope the god of explaining uses it.

My questions are:
I have my angular velocity as a 3D vector, great. Why can't I directly translate angular velocity to rotation? And what makes quaternions so star spangling special that they can? And every time I think I'll reach some downhill in the programming of my project where I can just cruise on the hard earned knowledge of getting up this hill, I see another cliff I have to climb, so can you guys tell me what else I might run into?

Thank you very much

Sparrow
 
Physics news on Phys.org
  • #2


3D rotations are tricky. That's because they are not commutative. So mathematically that's modeled by non-commutative things as well. Either 3x3 rotation matrices, or quaternions. Both work, but quaternions are sometimes seen as the better tool. This article seems to explain that nicely: http://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation
 
  • #3


Conceptually, it's better to think of rotations happening in a plane rather than about an axis. When you rotate an arbitrary vector, you need to find the parts that lie in the rotational plane and rotate them while leaving the parts outside (perpendicular to) the rotational plane alone. Quaternions give a very turn-crank, "don't need to think about it" approach to doing this. The math itself may be a little exotic, but once you do understand it, you can easily turn any angular velocity into a quaternion and find the associated rotation.

So quaternions are of great interest at least historically. To marry them into a traditional vector algebra framework may be unclear, but geometric algebra handles that very well (as well as the entire theory of linear algebra on finite vector spaces in a way that is coordinate free).
 
  • #4


Thanks, I've read up a bit more, but I can't find anything that tells me what they actually are, or how a graph of one will change if you increase a value by one, or if they have amplitude or anything. Is it possible to explain how a quaternion looks or feels?
 
  • #5


Perhaps the best way to think about it is to see how rotations are built from reflections. Any two successive reflections builds up a rotation. You just need to know the two normal vectors to the plane of reflection to do this. The scalar part of the quaternion is the dot product of these two vectors. The imaginary part comes from the cross product of the two vectors.

Generally, I stop there and just say it's a scalar number plus a plane of rotation (cross products should technically make planes). Geometrically picturing this union is somewhat difficult, I admit.

Quaternions do have amplitude, and if the magnitude of a quaternion isn't 1, then it will also dilate any vector it acts upon (stretching as well as rotating).
 
  • #6


The Sparrow said:
Thanks, I've read up a bit more, but I can't find anything that tells me what they actually are, or how a graph of one will change if you increase a value by one, or if they have amplitude or anything. Is it possible to explain how a quaternion looks or feels?
Well, if you understand how to picture a complex number as a 2D vector, quaternions are kind of like that, but in 4D.

In terms of how they work with rotations... That's a bit more complicated. Unit quaternions are isomorphic to an SU(2) group under multiplication. SU(2) is homomorphic to SO(3), which is a group corresponding to rotations. In other words, to every rotation you may assign a unit quaternion in such a way, that combining rotations is equivalent to multiplying corresponding quaternions.

You don't have to work with quaternions, however. The graphics card, for example, handles rotations and transformations via transformation matrices. These are 4x4, with a 3x3 sub-matrix corresponding to rotation. Set of 3x3 unitary matrices (with positive determinant) is how the rotation group SO(3) is defined. To generate a rotation matrix from a vector giving axis and an angle, you can use the Rodrigues' rotation formula. See the "conversion to rotation matrix" section.
 
  • #7


Wow, thanks a lot. I might not develop a very personal relationship with them just by reading the answers, but they definitely tell me which direction to look in or what other terms to search for.
 

FAQ: Forums like these give me faith in humanity.I am busy with little

What is the purpose of forums like these?

The purpose of forums like these is to bring together people from different backgrounds and perspectives to share knowledge, ideas, and experiences. It allows for open and respectful discussions on various topics.

Why do forums like these give people faith in humanity?

Forums like these give people faith in humanity because it showcases the kindness, empathy, and intelligence of individuals who are willing to help and support others. It also allows for constructive and productive conversations, promoting a sense of community and understanding.

How can forums like these benefit individuals?

Forums like these can benefit individuals by providing a platform for learning, sharing ideas, and gaining new perspectives. It also allows individuals to connect with others who share similar interests, providing a sense of belonging and support.

What measures are taken to ensure respectful discussions on forums like these?

Moderators are often present on forums like these to ensure that discussions remain respectful and productive. Rules and guidelines are also put in place to promote a safe and inclusive environment for all participants. Users can also report any inappropriate behavior or content.

How can one get involved in forums like these?

To get involved in forums like these, one can simply create an account and join discussions on topics that interest them. It's important to read and follow the forum's rules and guidelines and to contribute in a respectful and meaningful way to maintain the positive atmosphere of the community.

Similar threads

Back
Top