code: public Quaterniond toQuaternion(Vector3d axis) {
          return toQuaternion(axis.getX(), axis.getY(), axis.getZ());
      }
docs: Converts this complex to a quaternion by
  using the provided vector as a rotation axis.
  
  @param axis The rotation axis
  @return A quaternion of this rotation around the given axis