code: public Quaterniond scale(double factor, Quaterniond dest) {
          double sqrt = Math.sqrt(factor);
          dest.x = sqrt * x;
          dest.y = sqrt * y;
          dest.z = sqrt * z;
          dest.w = sqrt * w;
          return dest;
      }
docs: /* (non-Javadoc)
  @see org.joml.Quaterniondc#scale(double, org.joml.Quaterniond)