From 7409488119e1eb93ea980f0efae2050f59cecfe3 Mon Sep 17 00:00:00 2001 From: ThatLinuxFan <9904667+NodeMixaholic@users.noreply.github.com> Date: Thu, 23 Nov 2023 20:42:46 +0000 Subject: [PATCH] Create index.js --- index.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 index.js 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; +}