Enter Euler Angles (degrees):

Heading:

Pitch:

Bank:

Equivalent Quaternion:

w component cos(angle/2):

v component sin(angle/2) * axis vector:

Spherical linear interpolation:

Axis and Angle Representation:

How it works?

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.