This module is a port from Quake 3's inverse square root algorithm.
- Get yourself a C compiler (like gcc, clang or msvc)
- Run
python setup.py install
- Enjoy!
- Get yourself a C compiler (like gcc, clang or msvc)
- Run
python setup.py build bdist_wheel sdist
- Check the
dist
folder for the wheel and source distribution
quake_inverse_sq.coarse_inv_sqrt(number: float) -> float
This is fastest inverse square root algorithm. It is not as accurate as the quake_inverse_sq.fined_inv_sqrt
function, but it is much faster. It is implemented from this wikipedia
quake_inverse_sq.fined_inv_sqrt(number: float) -> float
This is the original inverse square root algorithm. It is more accurate than the quake_inverse_sq.coarse_inv_sqrt
function, but it is slower. It is implemented from math.h