CSharp Find3DDist

From scripting
Jump to: navigation, search
        static double Find3DDist(double[] a, double[] b)
        {
            double ss = Math.Sqrt(Math.Pow((b[0]-a[0]),2) + Math.Pow((b[1]-a[1]),2) + Math.Pow((b[2]-a[2]),2));
            return ss;
        }


Unrelated MEL scripting help located here: YSYT.