Update index.js
This commit is contained in:
parent
68661c5beb
commit
ae1fbe4d2e
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);
|
y = y - ((Math.floor(y) / 10) / (y * .0777));
|
||||||
y = Math.round(y * 100) / 100;
|
y = Math.round(y * 100) / 100;
|
||||||
return y;
|
return y;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue