public static double measureGlobalDistance(double[] first, double[] second) {

		double x = first[0] - second[0];
		double y = first[1] - second[1];
		double z = first[2] - second[2];

		double xx = x * x;
		double yy = y * y;
		double zz = z * z;

		double sum = xx + yy + zz;

		double distance = Math.sqrt(sum);

		return distance;

	}