CSharp MakeUnit

From scripting
Revision as of 05:06, 22 April 2017 by Nickpisca (talk | contribs) (Created page with " static double[] MakeUnit(double[] a ) { double L = ArrayVectorMag(a); double[] K = {a[0] / L, a[1] / L, a[2] / L};...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
        static double[] MakeUnit(double[] a ) {
            double L = ArrayVectorMag(a);
            double[] K = {a[0] / L, a[1] / L, a[2] / L};
            return K;
        }



This subroutine was used in the development of the Mega-Dots World's Toughest Connect-the-Dots Puzzles.

Unrelated MEL scripting help located here: YSYT.