Add Math.square to compute the square of a number without the need to repeat the term, without using the slower Math.pow.
Start unifying the euclidian distance functions instead of adding yet another helper function to the random map script library after this diff.
Differential Revision: https://code.wildfiregames.com/D969
Math.square accepted by mimo
Includes changes proposed by bb, fatherbushido
git-svn-id: https://svn.wildfiregames.com/public/ps/trunk@20328 3db68df2-c116-0410-a063-a993310a9797