# Explorador de Rotación con Cuaterniones

Explorador interactivo de rotación con cuaterniones — cuaterniones unitarios, recubrimiento doble de SO(3), interpolación slerp y bloqueo de cardán

> Página canónica: https://elysiatools.com/es/visualizations/quaternion-rotation-explorer

- **Categoría:** Math

## Descripción general

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

## Contenido relacionado

- [Reacción de Orden Cero - Visualización Interactiva](https://elysiatools.com/es/visualizations/zero-order-reaction): Visualización interactiva de la cinética de reacción de orden cero y cambios de concentración a lo largo del tiempo
- [Reacción de Primer Orden - Visualización Interactiva](https://elysiatools.com/es/visualizations/first-order-reaction): Visualización interactiva de la cinética de reacción de primer orden y la descomposición exponencial de concentración
- [Reacción de Segundo Orden - Visualización Interactiva](https://elysiatools.com/es/visualizations/second-order-reaction): Visualización interactiva de la cinética de reacción de segundo orden y la dinámica de colisión bimolecular
- [Ecuación de Arrhenius](https://elysiatools.com/es/visualizations/arrhenius-equation): Visualización interactiva del efecto de la temperatura en la velocidad de reacción - Explora la energía de activación, factor pre-exponencial y la constante de velocidad
- [Reacción Reversible](https://elysiatools.com/es/visualizations/reversible-reaction): Visualización interactiva de la cinética de reacción reversible A ⇌ B - Explora tasas de reacción, constante de equilibrio y cambios de concentración
- [Reacción Consecutiva](https://elysiatools.com/es/visualizations/consecutive-reaction): Visualización interactiva de la cinética de reacción consecutiva A → B → C - Explore picos de concentración intermedia
- [Reacción en Cadena](https://elysiatools.com/es/visualizations/chain-reaction): Visualización interactiva de la polimerización radicalaria en cadena
- [Principio de Le Chatelier](https://elysiatools.com/es/visualizations/le-chateliers-principle): Visualización interactiva del principio de Le Chatelier - Explora cómo los cambios de concentración, presión y temperatura afectan el equilibrio químico
