global.IntMath (static)
global.IntMath.distance( x, y )
原点との距離を算出します。 三平方の定理を使えば SQRT(x^2 + y^2) で表せますが、 x / cos(arctan(y/x)) と置き換えることで、若干高速になっています。
原点(0, 0)と点(x, y)との距離を返します。