by dheera · 3y ago · 0 comments
Quaternions that are not normalized do not form a representation of the spin group Spin(3).
Using quats for orientation is useful in part precisely because of the added dimension - it’s what makes interpolating quaternion orientations better than other representations - you naturally get the minimal and most direct motion. Interpolating any of 3 component orientations doesn’t work as well. So don’t let it irk you, instead find the utility and beauty in the extra dimension.
Why do you say that?
For example, we could represent any point on the sphere {x^2 + y^2 + z^2 = 1} by two numbers, but for most purposes, three numbers is a lot nicer.
And graphics programmers use homogeneous coordinates for everything, mainly because they make translations and perspective projections nicer. (Coincidentally, quaternions are also a kind of homogeneous coordinates, since the space of 3D rotations is (diffeomorphic to) 3D real projective space.)
So there are lots of places where adding extra variables makes things cleaner.
Basically you have an extra degree of freedom because you can multiply the whole thing by a scalar that just scales whatever vector it multiplies. But if you just want to represent rotations, you want it to have unit magnitude, so you ensure that a = cos θ and |v| = sin θ. (or θ/2 on each if you want to use the two-sided qpq^{-1} rotation).
When describing rotation of of a sphere projected onto a 2d plane, having two variables (X,Y) isn't enough. Because the sphere could rotate about the axis between the origin and that point. There's an an entire degree of freedom you could describe for a complete rotation about that axis.
In the same way, having 3 variables to describe a quaternion rotation is not enough. You again, have an entire degree of freedom you could rotate the quaternion about.
But they are mathematically useful.