by ColinWright · 6y ago · 0 comments
> Instead of using this thing you don't understand and investing the time to understand it, why don't you use this other thing you don't understand, and invest the time to learn that instead.
Indeed, later in the article the author says:
> We can notice that 3D Rotors look a lot like Quaternions ... In fact the code/math is basically the same! The main difference is that i, j, and k get replaced by y∧z, x∧z and x∧y, but they work mostly the same way.
Have I got that right?
He also gives a concrete reason: For 3D objects, rotors operate fully in 3D, whereas quaternions are in 4D. This means you can visualize rotors and imagine "how they work" whereas with quaternions, you have to more or less blindly trust the formulas.
This is a bit of a stretch -- by the same logic any operation on more than three numbers means I have to trust the formulas. We have many methods to understand, visualize, develop intuition, etc. in such cases, such as "fix a, look at what happens when you vary b, c and d". When I am working to understand dynamics of an object with three variables in MATLAB or similar, I seldom (probably never) plot it in 3D (which gets projected on the surface of a flat monitor anyway). Instead I usually play with numerous 2D and even 1D plots. My 2c.
By this, the author means: you can visualize a rotor FULLY in 3D, no extra dimension neccessary.
I suspect you never have tried to think about how quaternions work mechanically, I suggest this neat video:
I do get the theory part -- I know how quaternions and rotors work (and have a PhD in "pure" math). My objection (and a pretty firm one) is with the "if a phenomenon has more than three variables we cannot visualize it" logic. While lower dimensions make things a little easier to understand and develop an intuition for, a convenient abstraction or a model is much more important. Most engineers work with things described by multiple variables all the time and "reduce dimension to three" is seldom the main goal.
If the claim is that rotor is a better model, more convenient for software engineering, we can examine (and debate) that. But we should not recommend switching just because it has one less variable. For someone with an algebraic rather than geometric view, the ability to multiply quaternions on a piece of paper may be a strong benefit. Double-checking, say the result (1+i)*(j-k) by hand takes 10 seconds and a piece of paper; try mentally computing the rotor composition -- you would probably fall back on algebra (I certainly would).
In this case, a 3D visualisation is the right tool because the problem is all about objects in 3D space. So rotors let you mentally work with the same objects you're thinking about anyway instead of switching to some other concept or representation.
I don't see that "it's technically 2D anyway because it's projected to the surface of my monitor" is a valid argument. My visual system knows pretty well how to deal with pseudo-3D objects, thank you very much.
This is a very interesting point. Have you tried VR? Do you think this preference for 2d and 1d is just because 3d display technology is still inconvenient or is it something deeper than that?
If it means rotors can be used to give a simple formula for rotations in 3D space, then it also applies to quaternions.
If it means the space of rotors is three-dimensional, then it's false: rotors have 4 coordinates, a + b x^y + c y^z + d x^z, just like quaternions.
Does it mean something else? Something that applies only to rotors and not to quaternions?
It's also easy (after reading the article) to understand the operations that can be performed on these things.
It's not as obvious what i, j and k in the quaternions correspond to, or why they have the multiplication table that they do. It's an algebraic construction, not a geometric one and hence more difficult to visualise.
Quaternions and rotors are exactly the same in practice, but the intuitions are very different. The intuition behind rotors involves planes and lines in 3D, whereas the intuition behind quaternions typically involves a unit hypersphere; there's a 3B1B video on quaternions where you can learn more about them.
Note that even if you do restrict q to have unit norm, q and -q still denote the same rotation! (In other words, the space of rotations isn't really S^3, but projective space RP^3.)
I'll be sure to check out the 3B1B video, I keep seeing them recommended and I think they might a good resource to recommend to my students.
Quats are quite easy to reason about: a unit quat holds a rotation about an axis: rotation about angle theta an axis given by direction (x,y,z) is quat q = sin(t/2) + cos(t/2)(xi+yj+zk).
Composing quats q1 * q2 is the rotation you get by applying q2 then q1 to an item.
So think of the scalar as holding info about the angle rotated, and the vector part as the direction of the axis.
I don't see how with rotors or quats you can easily visualize composition or more complex actions (and I've used both extensively). "Blindly" trusting the formulas can be replaced by working through a proof enough times until you feel how they work, just like linear algebra, algebra, quadratic formula, etc.
Rotors use a.b with aXb, and quaternions use magnitude and 3D direction vector.
Rotations do involve magnitudes when interpreted as an axis (2 dimensional manifold embedded in R^3) and a magnitide (0 to 2pi)
https://en.wikipedia.org/wiki/Axis%E2%80%93angle_representat...
SO(3) is a coordinate-free abstraction that isn't relevant to the topic of GA vs Quaternions for calculating concrete values in computer graphics
You can write down Maxwell’s equations using the geometric algebra easily, and it will make them better! They will be obviously coordinate independent.
Pretty much anything with a cross product will be better written using geometric algebra.
One of their main uses is to prove the generalized Stokes theorem in n dimensions.
3D rotors are isomorphic to quaternions, so go ahead and rename your variables :).
So, to be as opinionated as the g'parent comment:
The cross product is a hack which only works in certain dimensionalities, whereas the wedge product is the underlying idea, which works in all circumstances.
To be less opinionated:
The cross product is inconvenient because what it gives you aren't the "usual" vectors, they're axial vectors, which behave differently under mirror reflection than all of your other vectors do.
Whether you call it the cross product or not is just semantics, but it does exist in terms of the exterior product.
It's difficult to find online, but it's constructed directly in Spivak. A quote:
"It is uncommon in mathematics to have a "product" that depends on more than two factors. In the case of two vectors v,w in R^3, we obtain a more conventional looking product, v X w in R^3. For this reason it is sometimes maintained that the cross product. can be defined only on R^3" - Calculus on Manifolds, pg.84
Most graduate students read this (or did five years ago).
If you would read a few sentences on from where you quote, this becomes evident.
ij = k
is arbitrary, needs to be memorized and just happens to do what you want for reasons that require a lot of working out. (xy)(yz)=x(yy)z=xz
On the other hand requires zero memorization.It's probably my mathematical background speaking, but I find this far from arbitrary. Quaternions don't spring from nothing. It seems to me that (xy)(yz)=x(yy)z=xz needs just as much justification and memorisation ... why should y^2=1?
I guess my point is this. If people put in as much effort to understand quaternions as has been expended in this article, then quaternions would probably be just as easy to grasp and the system being described.
y^2 = 1 is because it's a unit vector. The fact that bivectors are the correct way to view rotations is evident if you look at higher dimensions. Bivectors work just the same way as described here when you want to work in R^n, you just add basis vectors beyond x, y, z. But the algebra they describe no longer forms an associative division algebra over the reals. There is no way to get to the algebra of the (generators of) rotations in higher dimensions from the quaternions.
This is why i would say the quaternions (as built up from the complex numbers) are a non-sequitur and incidental to the structure of rotations.
Then again, I would always argue that one should use complex numbers to think of rotations in R^2, so.... :)
That's not so strange, it's basically e^i*theta isn't it?
You can do anything you do with our numbers with roman numerals. You could argue that our base-10 system is as arbitrary as roman numerals, or that knowing how to do arithmetic in one system will allow you to do arithmetic in the other one. But that does not mean that learning arithmetic with roman numerals has the same difficulty as with base-10 numbers, and the only reason we find it more difficult is because we do not put enough effort.
I have introduced a few grad students to quaternions and GA. We eventually use quaternions most of the time, but they do not understand quaternions until they see GA (the same as someone may need some base-10 theory before completely understanding roman numerals arithmetic).
You can treat complex numbers as 2D rotors (a 2D rotor is cos alpha + xy sin alpha, so xy can be replaced with i) and quaternions as 3D rotors. But if you build Cayley numbers from quaternions they don't have the same geometric meaning as 4D rotors.
Some memorisation is required, but it is in terms of things that are easily visualised.
Having to remember, out of the six possible permutations, that one of the three correct formulas is the one with the symbols in alphabetical order is much better than remembering the "right hand rule" (or was it "left hand rule"?).
x ^ y = x y - y x^T is the generator of the rotation that rotates a vector in the direction y into the direction of x. There is absolutely nothing to remember, and you can work this out immediately from just multiplying out the matrices:
exp(epsilon x ^ y) v ~ v + epsilon x ^ y * v = v + epsilon x (y,v) - epsilon y (x,v)
We add a little bit in the x direction and remove a bit in the y direction.
The whole view of rotations happening round an axis is just a coincidence of 3d space, it doesn't make sense in higher dimensions. On the other hand rotations always do (compose into ones that) happen on planes.
The pitch in the OP is (I think) intended for people who feel pressure to understand why it works. Geometric algebra can be built up yourself by picturing actual rotations, one dimension at a time. It's physical from the start. Quaternions are a finished math system that you have to reverse-engineer to understand. Some people like one approach or the other better.
Some geometric algebra people are kind of true believers. That's probably not helping the notation get traction.
Why not change? Comfort?
There's some return on all that investment. It might pay off or it might not. I think it's a design decision.
Geometric algebra also addresses much more than just rotating stuff, it's just that when you want to do rotations it leads naturally to something very similar to quaternions.