# Explorateur de Rotation par Quaternions

Explorateur interactif de rotation par quaternions — quaternions unitaires, double revêtement de SO(3), interpolation slerp et blocage de cardan

> Page canonique: https://elysiatools.com/fr/visualizations/quaternion-rotation-explorer

- **Catégorie:** Math

## Présentation

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).

## Contenu associé

- [Réaction d'Ordre Zéro - Visualisation Interactive](https://elysiatools.com/fr/visualizations/zero-order-reaction): Visualisation interactive de la cinétique de réaction d'ordre zéro et des changements de concentration au cours du temps
- [Réaction de Premier Ordre - Visualisation Interactive](https://elysiatools.com/fr/visualizations/first-order-reaction): Visualisation interactive de la cinétique de réaction de premier ordre et de la décroissance exponentielle de concentration
- [Réaction de Deuxième Ordre - Visualisation Interactive](https://elysiatools.com/fr/visualizations/second-order-reaction): Visualisation interactive de la cinétique de réaction de deuxième ordre et de la dynamique de collision bimoléculaire
- [Équation d'Arrhenius](https://elysiatools.com/fr/visualizations/arrhenius-equation): Visualisation interactive de l'effet de la température sur la vitesse de réaction - Explorez l'énergie d'activation, le facteur pré-exponentiel et la relation avec la constante de vitesse
- [Réaction Réversible](https://elysiatools.com/fr/visualizations/reversible-reaction): Visualisation interactive de la cinétique de réaction réversible A ⇌ B - Explorez les taux de réaction directs et inverses, la constante d'équilibre et les changements de concentration
- [Réaction Consécutive](https://elysiatools.com/fr/visualizations/consecutive-reaction): Visualisation interactive de la cinétique de réaction consécutive A → B → C - Explorez les pics de concentration intermédiaire et les étapes déterminantes
- [Réaction en Chaîne](https://elysiatools.com/fr/visualizations/chain-reaction): Visualisation interactive de la polymérisation radicalaire en chaîne
- [Principe de Le Chatelier](https://elysiatools.com/fr/visualizations/le-chateliers-principle): Visualisation interactive du principe de Le Chatelier - Explorez comment les changements de concentration, pression et température affectent l'équilibre chimique
