diff --git a/index.js b/index.js new file mode 100644 index 0000000..4535423 --- /dev/null +++ b/index.js @@ -0,0 +1,8 @@ +//wow. +function fastInvSqrt(x) { + var xhalf = 0.5 * x; + var i = x; + i = i * (1.5 - xhalf * i * i); + i = i * (1.5 - xhalf * i * i); + return i; +}