3.5.10 · D2Guidance, Navigation & Control (GNC)

Visual walkthrough — Converting between DCM, quaternions, Euler angles

2,395 words11 min readBack to topic

We start from ONE fact only: a rotation turns a vector. Nothing else assumed.


Step 1 — What a vector even is, and what "rotate it" means

WHAT: the blue arrow gets spun to a new blue arrow . WHY it matters: every representation on this topic — matrix, quaternion, Euler angles — is just a recipe that takes and hands you . If we can write that recipe once, cleanly, we own all three. PICTURE: notice the two arrows have the same length (the green circle they both touch). Rotation never stretches.

Recall What is preserved by a rotation?

Length is preserved ::: the tip stays on a sphere of the same radius; only direction changes.


Step 2 — The axis: Euler's theorem says one line is enough

WHAT: the orange line is the axis ; the vector sweeps through angle around it. WHY this tool: working with one axis + one angle is the cheapest honest description of a rotation — everything else is a re-packaging of these two objects. That is why the parent note calls axis–angle "the anchor." PICTURE: points on the axis (orange) do not move at all — they are the pivot. Everything off-axis swings.

  • ::: the fixed pivot line, length .
  • ::: how far around that line we turn.

Step 3 — Split the vector: the trick that makes it solvable

The whole derivation rests on one idea: a hard rotation of a whole vector becomes easy if we first cut the vector into two pieces — one that ignores the spin and one that fully feels it.

Reading (the dot product): it multiplies matching components and adds them: . Geometrically it measures how much of points along — the length of the shadow. Why this tool and not another? We need a number that says "how far along the axis," and the dot product is exactly the along-a-direction measuring stick.

WHAT: blue splits into orange (up the axis) and green (in the flat spin-plane). WHY: lies on the axis, so — by Step 2 — the rotation leaves it completely alone. Only actually rotates. We reduced a 3-D rotation to a flat 2-D one. PICTURE: the green arrow lives in the shaded disc perpendicular to the orange axis; that disc is where all the action happens.

  • ::: rebuild the along-axis shadow as an arrow (direction , length = the dot product).
  • ::: subtract the shadow off, leaving the in-plane part.

Step 4 — Rotating the flat part needs a second in-plane arrow

Inside the disc, turns by like a clock hand. To describe any angle in a plane you need two perpendicular reference arrows — a "cosine" direction and a "sine" direction. We already have one ( itself). We need its companion.

Why the cross product and not something else? We specifically need an arrow that is (a) in the spin-plane and (b) a quarter-turn ahead. The cross product is the one operation that manufactures a perpendicular partner, so it is the natural sine-direction.

WHAT: in the disc, green and red are two arrows at , same length. WHY: with a arrow and a arrow, any rotated arrow is of the first plus of the second — the same way traces a circle. PICTURE: the rotated tip (dashed) is reached by walking along green and along red.

  • ::: how much of the original in-plane arrow survives.
  • ::: how much of the perpendicular companion we mix in.

Step 5 — Add the untouched piece back: Rodrigues' formula appears

Now reassemble. The rotated full vector is the rotated flat part plus the parallel part that never moved.

Substitute and collect the terms:

WHAT: the three coloured arrows stack tip-to-tail to land exactly on . WHY the correction: the first term faded the along-axis part too (it shouldn't have — that part never moves). The third term adds back exactly the missing share along . Check: along the axis the fade plus the top-up sum to — full restoration. This is Rodrigues Rotation Formula in the flesh. PICTURE: watch the orange top-up arrow — it points straight up the axis and its only job is to undo the over-fade.


Step 6 — From arrows to a matrix: reading off the DCM

A matrix is just a machine that eats and outputs by the rule . To turn Rodrigues into such a machine we rewrite each term as "(matrix) times ."

Why these three matrices? Each just re-expresses one Rodrigues term as a matrix acting on — no new physics, only new bookkeeping so we can store the rotation as 9 numbers.

WHAT: the same three geometric pieces, now shown as three blocks that sum to . WHY: once exists, rotating any vector is one multiply — that is why the DCM is the workhorse for actually moving vectors. See Direction Cosine Matrix Properties. PICTURE: the diagonal is dominated by ; the anti-symmetric off-diagonal carries (the cross-product part); the symmetric leftover carries the projection.

  • The symmetric part of ::: comes from .
  • The anti-symmetric part of ::: comes from — this is why later isolates axis info.

Step 7 — Edge cases: the picture must cover ALL of them

A derivation is only trustworthy if it survives the degenerate inputs.

WHAT: three miniature clocks showing , , acting on the same start arrow. WHY: the reader should never meet a spin angle the picture didn't show — from "do nothing" to "flip." PICTURE: at the red -arrow has length ; the whole result is carried by fade + top-up.


Step 8 — Same picture, half the angle: the quaternion

The quaternion is not a new derivation — it is Step 5 seen through the sandwich rule , which geometrically applies twice. To land on one turn of , each must carry only .

WHAT: a semicircle showing (quaternion) as exactly half the full swing (DCM). WHY the half: because the sandwich doubles, and because it makes and describe the same physical turn — no singularities, ideal for time-integration in Quaternion Kinematics & Propagation. PICTURE: feed these into the table of the parent note and, using and , you regenerate the very matrix of Step 6. Same rotation, three costumes.


The one-picture summary

One rotation → three encodings. Axis and angle sit at the centre. Split the vector (dot & cross), add three arrows → Rodrigues → collect into DCM . Halve the angle → quaternion . Chain three planar turns → Euler angles. The DCM is the neutral hub everyone routes through — never convert quaternion↔Euler directly (compare Rotation Sequences (3-2-1 vs 3-1-3) and Gimbal Lock).

split plus dot plus cross

collect into matrix

half angle

sandwich to matrix

three planar turns

multiply back

axis-angle e and Phi

Rodrigues arrows

DCM C

quaternion q

Euler phi theta psi

Recall Feynman: the whole walkthrough in plain words

Take an arrow. Pick the single line it spins around (Euler promised one line is always enough) and the angle it turns. Cut the arrow into two: the shadow lying on the spin line — that part never moves — and the flat leftover in the disc facing you. In that disc, spinning an arrow is just clock-hand stuff: keep of the original arrow, add of a fresh arrow that points a quarter-turn ahead (the cross product hands you that companion for free). Add the untouched shadow back, and — since the cosine faded that shadow too — throw in a small top-up along the line to fix it. Those three arrows are the Rodrigues formula. Rewrite each arrow-recipe as a little number-machine and stack them: that's the rotation matrix, the DCM. If instead you turn only half the angle and use the sandwich rule, you get the quaternion — same turn, cheaper and no singular spots. And if you'd rather spin about , then , then in sequence, you get the human roll-pitch-yaw Euler angles — readable, but they jam at pitch (gimbal lock). Three languages, one geometric fact. Translate through the matrix and you never lose the meaning.