Update index.js

This commit is contained in:
Samuel Lord 2024-01-27 16:02:02 -06:00 committed by GitHub
parent ae1fbe4d2e
commit 5744fa3c22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
} }