A unit quaternion representing rotation can be expressed as:

Where:

  • is the scalar part
  • is the vector part
  • is the rotation angle
  • is the unit vector representing the rotation axis