mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-23 04:05:41 +00:00
729920bdca
## Description: In most cases we do not need to solve for the hypotenuse length and can do math directly on the square of the hypotenuse. For example, the common use case for calculating euclidean distance is to check if two points are within a certain distance of each other. In this case, `Math.sqrt(x*x + y*y) < d` can be rewritten as `x*x + y*y < d*d`. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors ## Please put your Discord username so you can be contacted if a bug or regression is found: fake.neo --------- Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>