3.5.8 · D3 · HinglishGuidance, Navigation & Control (GNC)

Worked examplesQuaternion rotation formula — rotating vector v by quaternion q

3,613 words16 min read↑ Read in English

3.5.8 · D3 · Physics › Guidance, Navigation & Control (GNC) › Quaternion rotation formula — rotating vector v by quaternio

Yeh page quaternion rotation formula ka drill hall hai. Parent note ne derive kiya tha. Yahan hum isme har tarah ka input daalenge — har axis, har angle ka sign, fixed vector, zero vector, zero rotation, poora turn, composition, aur ek real spacecraft problem — taaki aap koi bhi case pehli baar na dekho.

Sab kuch ek hi recipe pe tikaa hai, isliye koi bhi symbol dobara aane se pehle usse saral shabdon mein dobaara batate hain.

Recall Recipe ek saans mein

Ek quaternion chaar numbers hote hain: ek scalar aur ek vector , likha jaata hai . Kisi 3D arrow ko angle se spin-axis ke aas-paas rotate karne ke liye (jo ek unit-length arrow hai jo kehta hai "MERE around ghoom"):

  1. banao — half-angle andar chhupa hai.
  2. Arrow ko pure quaternion ke roop mein wrap karo (scalar zero).
  3. Sandwich karo: , jahan unit ke liye . Output hoga; padhh lo.

Hum zyaadatar algebra ka shortcut Rodrigues' rotation formula se lenge jo parent note ne prove kiya tha, lekin Example 1 mein poora Hamilton-product sandwich ek baar haath se kiya jaayega taaki aap pe trust ho sake.


The scenario matrix

Is topic ka har problem in cells mein se ek hai. Table ko ek checklist ki tarah padho un inputs ki jo aapko survive karni chahiye — har row ek alag tarah ki cheez hai jo formula ko di ja sakti hai, aur "Trap" column us mistake ka naam batata hai jo woh cell typically trigger karti hai. Phir worked examples har row ko cover karte hain taaki koi cell sirf words tak limited na rahe.

# Case class Is cell mein chhupa trap Example
A Axis-aligned, positive angle mein half-angle bhool jaana Ex 1, Ex 2
B Vector axis par (degenerate) yeh expect karna ki woh move karega Ex 3
C Negative / reversed angle galat spin direction Ex 4
D Identity / zero rotation () axis nikalte waqt se divide karna Ex 5
E Full turn , double cover ko "flipped" samajhna Ex 5
F Tilted axis, general vector non-unit axis silently rescale kar deta hai Ex 6
G Composition (order matters) likhna ki jagah Ex 7
H Real-world word problem (GNC) body vs inertial frame mix karna Ex 8
I Diye gaye se axis+angle recover karna un-normalised se axis padhna Ex 9
J Zero vector input division-by-length error expect karna Ex 10

Example 1 — Cell A: poora sandwich, haath se

Figure — Quaternion rotation formula — rotating vector v by quaternion q

Example 2 — Cell A: axis-aligned, arbitrary angle


Example 3 — Cell B: axis par vector frozen rehta hai


Example 4 — Cell C: negative angle spin reverse karta hai


Example 5 — Cells D & E: identity, full turn, aur double cover


Example 6 — Cell F: ek tilted axis aur ek general vector


Example 7 — Cell G: composition — order matters karta hai


Example 8 — Cell H: real-world GNC word problem


Example 9 — Cell I: exam twist — diye gaye se axis aur angle recover karo


Example 10 — Cell J: zero vector — ek degenerate input


Recall Quick self-test

ke baare mein turn ko kahaan bhejta hai? ::: Rotation axis ke along vector kya ban jaata hai? ::: khud wahi (unchanged) aur ek vector ko kaise rotate karte hain? ::: identically (double cover) " phir se rotate karo" compose karne ke liye single quaternion kya hai? ::: diya ho toh rotation angle kya hai? ::: Zero vector ko kisi bhi se rotate karne par kya milta hai? ::: zero vector