Update index.js
This commit is contained in:
parent
ae1fbe4d2e
commit
5744fa3c22
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -7,7 +7,7 @@ function fastInverseSqrt(number) {
|
||||||
y = threehalfs - (x2 * y * y);
|
y = threehalfs - (x2 * y * y);
|
||||||
y = Math.abs(y);
|
y = Math.abs(y);
|
||||||
y = (y / 1000000000000000000);
|
y = (y / 1000000000000000000);
|
||||||
y = y - ((Math.floor(y) / 10) / (y * .0777));
|
y = (y - ((Math.floor(y) / 10) / (threehalfs * number))) / 1.55;
|
||||||
y = Math.round(y * 100) / 100;
|
y = Math.round(y * 100) / 100;
|
||||||
return y;
|
return y;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue