Quaternion Functions
Comprehensive collection of calculators for quaternion operations and 3D rotations
Quaternions in 3D Mathematics
Quaternions are an extension of complex numbers and provide an elegant way to represent rotations in three-dimensional space. They avoid the gimbal lock problem and enable smooth interpolations between rotations.
Basic Operations
Geometric Operations
Transformations
Advanced Functions
Quaternion Fundamentals
Quaternion Properties
q = w + xi + yj + zk
Unit quaternions for rotations
Slerp for smooth transitions
Practical Applications
Computer Graphics
- 3D rotations without gimbal lock
- Camera control
- Skeletal animation
- Object transformations
Robotics & Simulation
- Robot arms
- Flight simulation
- Inertial sensors
- Orientation control
Important Quaternion Formulas
Hamilton Product
q₁ × q₂ = (w₁w₂ - x₁x₂ - y₁y₂ - z₁z₂) +
(w₁x₂ + x₁w₂ + y₁z₂ - z₁y₂)i +
(w₁y₂ - x₁z₂ + y₁w₂ + z₁x₂)j +
(w₁z₂ + x₁y₂ - y₁x₂ + z₁w₂)k
Norm (Magnitude)
|q| = √(w² + x² + y² + z²)
For unit quaternions: |q| = 1
Rotation around Axis
q = cos(θ/2) + sin(θ/2)(xᵢ + yⱼ + zₖ)
Where (x,y,z) is the rotation axis and θ is the angle