Professional Documents
Culture Documents
1
Quaternion Definition
Quaternion:
q = (q0 , q1 , q2 , q3 )
This can be interpreted as a constant + vector:
q = (q0 , q)
2
Operations with Quaternions
Quaternion addition/subtraction:
p ± q = (p0 ± q0 , p ± q)
Quaternion multiplication:
pq = (p0 q0 pT q, p0 q + q0 p + p ⇥ q)
Quaternion inverse:
1
q = (q0 , q)
4
Axis-Angle Representation to Quaternion
Quaternions can be used to represent rigid-body rotations.
p q3 2
1 q0
6
Vector Rotation with Quaternions
To rotate a vector p in R3 by the quaternion q:
1. Define quaternion:
p = (0, p)
2. The result after rotation is:
p0 = qpq 1
= (0, p0 )