We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently the hypothenuse is often computed by hand via sqrt(a*a + b*b). This can be simplified to hypot(a, b).
sqrt(a*a + b*b)
hypot(a, b)
The text was updated successfully, but these errors were encountered:
refactor: Use hypot() to calculate hypotenuse (#176)
544f887
Formerly sqrt(x*x, y*y) was used. This has been replaced with PHP's native function hypot(). Fixes #140.
Successfully merging a pull request may close this issue.
Currently the hypothenuse is often computed by hand via
sqrt(a*a + b*b)
. This can be simplified tohypot(a, b)
.The text was updated successfully, but these errors were encountered: