# Quaternion-Rotations-Explorer

Interaktiver Quaternion-Rotations-Explorer — Einheitsquaternionen, Doppelüberlagerung von SO(3), Slerp-Interpolation und Gimbal-Lock

> Kanonische Seite: https://elysiatools.com/de/visualizations/quaternion-rotation-explorer

- **Kategorie:** Math

## Überblick

Interactive quaternion rotation explorer rendered with Three.js — the first case in the collection devoted to a NON-commutative algebraic structure (existing geometry cases like rose-mathematics, heart-curve, cycloid-trochoid live in commutative Euclidean space). Models the quaternion algebra H={a+b·i+c·j+d·k}, i²=j²=k²=ijk=−1 (Hamilton 1843): full Hamilton-product multiplication, conjugate, inverse, norm, and normalisation; axis-angle↔quaternion (q=(cos θ/2, n·sin θ/2)); quaternion↔rotation-matrix conversion (Shepperd's branch-stable matrix→quaternion method, verified round-trip to 1e-9); ZYX aerospace Euler-angle (yaw-pitch-roll) ↔ quaternion with PRECISE gimbal-lock detection (|sin(pitch)|>0.9999 flags the singularity where yaw and roll collapse). The unit quaternions form the 3-sphere S³ and DOUBLE-COVER SO(3): q and −q give the same rotation — the 2-to-1 map SU(2)→SO(3) is why quaternions parameterise ALL of SO(3) smoothly with no singularity (the edu card is careful to state gimbal lock is an EULER-angle phenomenon, not inherent to rotation matrices or quaternions). SLERP (spherical linear interpolation) walks the shortest great-circle arc: slerp(t)=(q₀·sin((1−t)Ω)+q₁·sin(tΩ))/sin(Ω), choosing the sign so q₀·q₁≥0 (the short way, ≤180°), with a near-linear fallback when the endpoints are within 0.0005. Composition = Hamilton product (q₂⊗q₁ applies q₁ first; order matters since quaternions do not commute). Core interaction: a deliberately ASYMMETRIC 3D object (six differently-coloured faces + forward arrow + local axes) is rotated by dragging it — an arc-ball delta quaternion in CAMERA space is left-multiplied onto the current orientation, so the handle behaves like grabbing the object itself; dragging empty space orbits the camera independently (separate yaw/pitch/dist), wheel zooms. Controls: live q=(w,x,y,z), axis·angle, |q|, double-cover readouts; ZYX Euler sliders (yaw ±180°, pitch ±90°, roll ±180°) with a pulsing GIMBAL LOCK badge when the pitch singularity is hit; a slerp timeline (t slider + ▶ animate loop, set-start / set-end from current orientation, start/end quaternion readouts); a composition chain (append current, apply, clear, per-item remove). 7 presets (identity, 90° about X/Y/Z, diagonal axis, gimbal-lock demo, 180° flip). Educational content covers the algebra H and non-commutativity, the SO(3) double cover, gimbal lock as an Euler-specific singularity, slerp on S³, composition via Hamilton product, and real applications (spacecraft/satellite attitude control, IMU sensor fusion, robotics, game engines, VR head tracking, molecular docking). Verified by 213 model tests (i·j=k / ijk=−1 defining relations, non-commutativity, identity/inverse, norm, axis-angle round-trip, quaternion↔matrix round-trip across 6 cases incl. near-180°, Euler round-trip in non-gimbal region, gimbal-lock detection at ±90° pitch, slerp endpoints/midpoint/monotonicity/short-path, composition order, double-cover equivalence of q and −q, length-preserving isometry, presets, world defaults). Multi-language support (zh, en, es, fr, de, ru, pt).

## Verwandte Inhalte

- [Null-Ordnungs-Reaktion - Interaktive Visualisierung](https://elysiatools.com/de/visualizations/zero-order-reaction): Interaktive Visualisierung der Kinetik von Null-Ordnungs-Reaktionen und Konzentrationsänderungen über Zeit
- [Reaktion Erster Ordnung - Interaktive Visualisierung](https://elysiatools.com/de/visualizations/first-order-reaction): Interaktive Visualisierung der Kinetik von Reaktionen erster Ordnung und exponentiellem Konzentrationszerfall
- [Reaktion Zweiter Ordnung - Interaktive Visualisierung](https://elysiatools.com/de/visualizations/second-order-reaction): Interaktive Visualisierung der Kinetik von Reaktionen zweiter Ordnung und bimolekularer Kollisionsdynamik
- [Arrhenius-Gleichung](https://elysiatools.com/de/visualizations/arrhenius-equation): Interaktive Visualisierung des Temperatureinflusses auf die Reaktionsgeschwindigkeit - Erforschen Sie Aktivierungsenergie, prä-exponentiellen Faktor und Geschwindigkeitskonstante
- [Reversible Reaktion](https://elysiatools.com/de/visualizations/reversible-reaction): Interaktive Visualisierung der Kinetik der reversiblen Reaktion A ⇌ B - Erkunden Sie Reaktionsraten, Gleichgewichtskonstante und Konzentrationsänderungen
- [Folgereaktion](https://elysiatools.com/de/visualizations/consecutive-reaction): Interaktive Visualisierung der Kinetik der Folgereaktion A → B → C - Erkunden Sie Zwischenproduktkonzentrationen, geschwindigkeitsbestimmende Schritte und die vollständige Entwicklung aller Spezies
- [Kettenreaktion](https://elysiatools.com/de/visualizations/chain-reaction): Interaktive Visualisierung der radikalischen Kettenpolymerisation
- [Prinzip von Le Chatelier](https://elysiatools.com/de/visualizations/le-chateliers-principle): Interaktive Visualisierung des Prinzips von Le Chatelier - Erforschen Sie, wie Konzentrations-, Druck- und Temperaturänderungen das chemische Gleichgewicht beeinflussen
