3.5.1 · D2Guidance, Navigation & Control (GNC)

Visual walkthrough — Reference frames — body frame, inertial frame; rotation between them

2,033 words9 min readBack to topic

Step 1 — What is a component, really?

Figure — Reference frames — body frame, inertial frame; rotation between them

Look at the picture. The amber arrow never moves. We drop two dashed lines straight down onto the two axes. Where they land gives two numbers:

  • are unit vectors — arrows of length exactly pointing along each axis. The little hat means "length one".
  • is the shadow of on the -axis; is its shadow on the -axis.

Step 2 — The dot product: a machine that measures "how much along"

Figure — Reference frames — body frame, inertial frame; rotation between them

Step 3 — Two frames on the same arrow

Figure — Reference frames — body frame, inertial frame; rotation between them

Notice in the figure that the arrow is drawn once, but it has two shadow-pairs: white shadows on the white axes and cyan shadows on the cyan axes.

  • The superscript tags numbers "as seen in the inertial frame".
  • The superscript tags numbers "as seen in the body frame".
  • The middle equals sign is the whole point: two lists of numbers, one arrow.

Step 4 — Extract one body component using the dot-product trick

Figure — Reference frames — body frame, inertial frame; rotation between them

Now substitute the arrow written in inertial pieces, , and use that the dot product distributes over the sum:

  • Each bracket is a dot product of two unit vectors → by Step 2 it is a pure cosine of the angle between an inertial axis and the body- axis.
  • The picture shows exactly this: the cyan arrow makes an angle with each white axis, and the cosine of each angle is a weight.
  • So is a weighted blend of the three inertial numbers. The weights are cosines. These weights are the first row of the matrix.

Step 5 — Stack all three rows: the Direction Cosine Matrix

Figure — Reference frames — body frame, inertial frame; rotation between them

  • Row 1 was born from dotting with — so row is body axis written in inertial coordinates.
  • Column carries the inertial- number into all three body slots.
  • Every single entry is → the name Direction Cosine Matrix.

  • Read the subscripts right-to-left: start in , land in . The "cancels" against the of the vector — like units cancelling.

Step 6 — Make it concrete: a pure spin about

Figure — Reference frames — body frame, inertial frame; rotation between them

In the top-down view, the cyan body axes are rotated from the white inertial axes. Measuring the four in-plane angles:

  • (angle between them)
  • ← the crucial minus sign

  • The bottom row and right column are because is shared — it makes a angle with both in-plane axes () and with itself ().
  • The lone minus on is exactly the picture: the new leans into , so its cosine with is negative. That minus is geometry, not a convention you must memorise.

Step 7 — The degenerate case : the identity

Figure — Reference frames — body frame, inertial frame; rotation between them

  • Body axes sit exactly on inertial axes: each axis is perfectly aligned with its twin ( on the diagonal) and perpendicular to the others ( off-diagonal).
  • Applying changes no number: . Sanity anchor — every correct rotation matrix must collapse to at zero angle.

Step 8 — Going the other way is just a flip (the transpose)

Figure — Reference frames — body frame, inertial frame; rotation between them

Entry of is (body axis ) (body axis ). Since body axes are mutually perpendicular unit vectors (orthonormal):

  • Why it matters onboard: the flight computer never runs an expensive matrix inversion. Reversing a frame conversion costs one transpose — literally swapping rows and columns. This is the IMU-to-star pipeline's cheapest, most reliable step.
  • This is also the resolution of the classic slip warned about in Euler angles and gimbal lock and Quaternions for attitude representation: "rotate the vector" versus "rotate the frame" differ by exactly this transpose.

The one-picture summary

Figure — Reference frames — body frame, inertial frame; rotation between them

One arrow, two frames, one table of cosines connecting them — and the reverse trip is the same table flipped across its diagonal.

Recall Feynman: retell the whole walkthrough in plain words

Picture one arrow floating in space — it never moves. Now put two rulers over it: a still white ruler tied to the stars, and a cyan ruler bolted to your spinning spacecraft. Measuring the arrow with each ruler gives two different lists of numbers, even though it's the same arrow. To measure "how much of the arrow points along a ruler line" you use the dot product, which quietly hands you a cosine. Do that for all three cyan lines and you get a little 3×3 table of cosines — that's the rotation matrix, the dictionary between the two rulers. Plug in zero tilt and the table becomes "leave everything alone" (the identity). And to translate the other direction, you don't do any hard work at all — you just flip the table across its corner, because perpendicular rulers make the flip and the inverse the exact same thing.

Reveal checks:

Why is every matrix entry a cosine?
Each entry is a dot product of two unit axes, and when both have length one.
What does equal and why?
The identity — at zero angle the body axes coincide with inertial axes ( diagonal, off-diagonal).
Why can we invert by transposing?
Body axes are orthonormal, so , meaning .