A vector v is a physical arrow — it doesn't change. Only its components change when you describe it in different frames. If vI are its components in the inertial frame and vB in the body frame, they are related by a matrix:
vB=RBIvI
RBI (read "R body-from-inertial") is the Direction Cosine Matrix (DCM) / rotation matrix.
Row i of R is body axis e^iB in inertial coordinates. Entry (i,j) of RRT is e^iB⋅e^jB. Since body axes are orthonormal, this is δij → RRT=I. Why it matters: the inverse is free — just transpose, no matrix inversion onboard.
A rotation by angle θabout the z-axis (derived from projecting rotated axes):
Rz(θ)=cosθ−sinθ0sinθcosθ0001
Why the signs? This maps inertial components to body components when the body is rotated by +θ. The row of −sin comes from the new yB axis leaning into −X. (Some texts use the transpose — always check whether the matrix is "frame-to-frame" or "vector-rotation".)
A general attitude = product of three elementary rotations (e.g. yaw-pitch-roll 3-2-1):
RBI=Rx(ϕ)Ry(θ)Rz(ψ)
Imagine you're spinning on a merry-go-round holding a camera. The world is really standing still (that's the "star frame"), but your camera film sees everything sliding sideways (that's your "body frame"). A rotation matrix is a little translation table that says: "if the world says the tree is there, then on your spinning camera it shows up here." Spacecraft do this same trick to know which way they're pointing at the stars, even though their sensors are spinning along with them.
Dekho, spacecraft ke andar jitne bhi sensors hote hain — gyro, accelerometer, star tracker — woh sab vehicle ke upar bolted hote hain. Yaani jo bhi number woh dete hain, woh body frame mein hota hai, jo vehicle ke saath hi ghoomta hai. Lekin physics ke laws (F=ma) aur stars, jinke against hum navigate karte hain, woh ek aise frame mein rehte hain jo na rotate karta hai na accelerate — usko inertial frame kehte hain (jaise ECI). GNC ka pura kaam hai in do frames ke beech numbers ko translate karna, baar-baar, har second mein hazaaron baar.
Ye translation ka kaam rotation matrix (DCM) karta hai. Yaad rakho — vector khud nahi badalta, sirf uske components badalte hain jab observer badalta hai. Har matrix entry actually do axes ke beech ke angle ka cosine hai (isliye "direction cosine matrix"). Derive karne ka simple trick: component nikalna matlab projection, aur projection matlab dot product axis ke saath. Bas isi se poora matrix ban jaata hai.
Ek bahut kaam ki property: rotation matrix orthogonal hoti hai, isliye uska inverse sirf transpose hai (R−1=RT). Onboard computer ke liye ye sona hai — koi heavy matrix inversion nahi, bas rows aur columns swap. Aur frames ko chain karna ho toh subscripts ko dominoes ki tarah cancel karo: RBI=RBOROI.
Sabse common galti: "vector ghumana" aur "frame ghumana" confuse kar dena — dono transpose ke relation mein hote hain. Hamesha poocho: "main arrow badal raha hoon ya observer?" Aur dusri galti — body frame ko inertial samajh lena. Body frame rotate karta hai, isliye usmein Coriolis aur centrifugal jaise fictitious forces aa jaate hain. Clean F=ma sirf inertial frame mein milta hai.