w component cos(angle/2):
v component sin(angle/2) * axis vector:
Input the desired orientation in euler angles.
The cubes are animated from their initial (zero) orientation to the desired orientation.
The code uses quaternion spherical linear interpolation to animate the rotation.