Representation of rotations by unit quaternions