using System;

namespace Hlpr
{
	class WarpHelp
	{
		public static double Distance(double x1, double y1, double z1, double x2, double y2, double z2)
		{
			double dis;
			dis = Math.Pow(x1-x2,2) + Math.Pow(y1-y2,2) + Math.Pow(z1-z2,2);
			dis = Math.Pow(dis,0.5);
			return dis;
		}
		public static double Distance(Vector3d v1, Vector3d v2)
		{
			double dis, x1, x2, y1, y2, z1, z2;
			ConvertVector3dToXYZCoords(v1, x1, y1, z1);
			ConvertVector3dToXYZCoords(v2, x2, y2, z2);
			dis = Math.Pow(x1-x2,2) + Math.Pow(y1-y2,2) + Math.Pow(z1-z2,2);
			dis = Math.Pow(dis,0.5);
			return dis;
		}
	}
}
using System;

namespace Hlpr
{
	class WarpHelp
	{
		public static double Distance(double x1, double y1, double z1, double x2, double y2, double z2)
		{
			double dis;
			dis = Math.Pow(x1-x2,2) + Math.Pow(y1-y2,2) + Math.Pow(z1-z2,2);
			dis = Math.Pow(dis,0.5);
			return dis;
		}
		public static double Distance(Vector3d v1, Vector3d v2)
		{
			double dis, x1, x2, y1, y2, z1, z2;
			ConvertVector3dToXYZCoords(v1, ref x1, ref y1, ref z1);
			ConvertVector3dToXYZCoords(v2, ref x2, ref y2, ref z2);
			dis = Math.Pow(x1-x2,2) + Math.Pow(y1-y2,2) + Math.Pow(z1-z2,2);
			dis = Math.Pow(dis,0.5);
			return dis;
		}
	}
}
Fix non-existant ref vars in function calls.
Fix non-existant ref vars in function calls. 