Create index.js
This commit is contained in:
parent
8104504c9a
commit
7409488119
1 changed files with 8 additions and 0 deletions
8
index.js
Normal file
8
index.js
Normal file
|
@ -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;
|
||||||
|
}
|
Loading…
Reference in a new issue