by Kristine1975 on 8/7/17, 12:42 PM with 41 comments
by arnioxux on 8/7/17, 5:38 PM
qx = ax * sin(angle/2)
qy = ay * sin(angle/2)
qz = az * sin(angle/2)
qw = cos(angle/2)
where (ax, ay, az) is the unit direction (ax^2 + ay^ + az^2 = 1) and angle is the amount you want to rotate.http://www.euclideanspace.com/maths/geometry/rotations/conve...
http://www.euclideanspace.com/maths/geometry/rotations/conve...
by klodolph on 8/7/17, 6:34 PM
For notation, we would often see the basis vectors named (e_1, e_2, e_3) instead of (x, y, z).
The quaternions are the even-ordered subalgebra of the 3D exterior algebra. The exterior algebra has scalars (1), vectors (x, y, z), bivectors (xy, yz, zx), and pseudoscalars (xyz). The even-ordered subalgebra is scalars and bivectors (1, xy, yz, zx). Adding or multiplying two even-ordered multivectors will always give you an even-ordered multivector, and 1 is even-ordered, so the even-ordered multivectors form a subalgebra.
We can also conceive of this subalgebra, the quaternions, as a Clifford algebra. Clifford algebras are generalizations of exterior algebras. Instead of saying v * v = 0, we can put something else on the RHS, and for quaternions we can start with just two basis vectors e_1 and e_2, and then define e_1 * e_1 = e_2 * e_2 = -1. The third basis vector for quaternions is then just e_1 * e_2.
by Grustaf on 8/7/17, 6:22 PM
>So don’t think of quaternions as a 4 dimensional hypersphere of radius 1
This is also a bit weird:
>But nobody would ever suggest that we should think of a rotation matrix as a 9 dimensional hyper-cube with rounded edges of radius 3.
Even weirder when they claim that the axis-angle interpretation of (unit) quaternions "breaks down".
Anyway, back in high-school when I first became fascinated with quaternions I certainly didn't expect to be working with them on a daily basis two decades later. The moral of this is that anything you learn can become crucial to your career...
by Govindae on 8/8/17, 3:54 PM
If you write out a multiplication table, it seems that it's isomorphic. But... Octonions aren't associtive. Does the even subalgebra of G4 somehow lose associativity? Is it equivalent to Octonions with a cannonical multiplication order?
by marcv81 on 8/7/17, 4:53 PM
by amai on 8/7/17, 7:44 PM
by tnone on 8/8/17, 12:10 PM
by mwkaufma on 8/8/17, 3:57 AM
by catnaroek on 8/7/17, 5:51 PM
No. Geometric algebra is a use case of linear algebra. How can it be an alternative?
> Before I tell you how to actually evaluate the wedge product, I first have to tell you the properties that it has:
> 1. It’s anti-commutative: a \wedge b = -b \wedge a
> 2. The wedge product of a vector with itself is 0: a \wedge a = 0
Redundant information. The latter follows from the former.