Conceptually a qauternion can store the rotation around an axis by some degree. Now, what is the numerically most robust and least calculation intensive way to rotate the ax