Use alternate method of generating rotation matrix.

Use a different method of calculating a rotation matrix for an angle of
rotation, and 3D axis of rotation.  This gives a better means for
comparing the cost between multiple consecutive rotations, and single
rotation matrix (using Euler's theorem) by computing a quaternion
product.