logoalt Hacker News

westurnertoday at 2:49 PM0 repliesview on HN

That quaternions also solve for what we normally have 3D+time for.

And Lewis Carroll (Oxford (Math)), preferred Euclidean geometry over quaternions, for "Alice's Adventures in Wonderland" (1865).

Quaternions:

  q = a + bi + cj + dk
  -1 = i^2 = j^2 = k^2
Summarized by a model:

> In a quaternion, if you lose the scalar (a) — the "real" or "time" component — you are left with only the three imaginary components (i, j, k) rotating endlessly in a circle.

(An exercise for learning about Lorentzian mechanics, then undefined: Rotate a cube about a point other than its origin. Then, rotate the camera about the origin.)

4D Quaternions (a + bi + cj + dk) are more efficient for computers than 3D+t Euclideans. Quaternions do not have the Gimbal Lock problem that Euclidean vectors have. Quaternions interpolate more smoothly and efficiently, which is valuable for interpolating between keyframes in a physical simulation.

Why are rotations and a scalar a better fit?

Quaternions were published by William Rowan Hamilton (Trinity,) in 1843, in application to classical mechanics and Lagrangian mechanics.

Maxwell's (1861,1862) original ~20 equations are also quaternionic; things are related with complex rotations in EM field theory too. Oliver Heaviside then "simplified" those quaternionic expressions into accessible vectors.

Is there Gimbal Lock in the Heaviside-Hertz vector field reinterpretation of Maxwell's quaternionic EM field theory? Maxwell's has U(1) gauge symmetry.

And then quantum has complex vectors and some unitarity, too

History of quaternions: https://en.wikipedia.org/wiki/History_of_quaternions