CSharp Find3DDist

From scripting
Revision as of 05:06, 22 April 2017 by Nickpisca (talk | contribs) (Created page with " 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]...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.