public static double euclideanDistance(Vector vec1, Vector vec2) {
    { double result = 0.0;
      double diff = 0.0;

      { int i = Stella.NULL_INTEGER;
        int iter000 = 0;
        int upperBound000 = vec1.length() - 1;

        for (;iter000 <= upperBound000; iter000 = iter000 + 1) {
          i = iter000;
          diff = ((FloatWrapper)((vec1.theArray)[i])).wrapperValue - ((FloatWrapper)((vec2.theArray)[i])).wrapperValue;
          result = result + (diff * diff);
        }
      }
      return (Math.sqrt(result));
    }
  }