Skip to content
Adaptive AgroTech NetworkUniversity of Southern Denmark · SDU Drone Center
Cover for What Is the Difference Between a Rotation Matrix and a Quaternion?

Video by Adaptive AgroTech. If the embedded player is unavailable, open the original video ↗.

Robot kinematicsInterview topic 138

What Is the Difference Between a Rotation Matrix and a Quaternion?

Rotation matrices and unit quaternions describe the same three dimensional orientation using different constrained representations. Both avoid Euler gimbal lock, but validity conditions, quaternion ordering, and rotation conventions must be handled consistently.

Understand the concept

The key idea

A rotation matrix stores orientation in nine entries constrained to orthonormal columns and determinant positive one. A unit quaternion uses four entries constrained to unit length. Both avoid the Euler angle representation singularity called gimbal lock. A ninety degree rotation about z sends the x axis onto y; in scalar first order its quaternion is approximately (0.707, 0, 0, 0.707). Quaternions q and −q describe the same orientation. When linking software components, verify scalar ordering and rotation conventions as well as normalization, rather than assuming the stored numbers have identical meanings.

What to remember

  • Valid rotation matrices have orthonormal columns and determinant +1.
  • Rotation quaternions have unit length.
  • q and −q encode the same orientation.
Pause & think

Check your understanding

Do q and −q represent different physical orientations?

Show the explanation

No. They represent the same rotation.