Files
OpenFrontIO/src/client
Scott Anderson 729920bdca Avoid sqrt for euclideanDist function (#395)
## 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>
2025-04-05 10:17:29 -07:00
..
2025-03-31 10:31:51 -07:00
2025-03-25 08:11:58 -07:00
2025-03-31 13:09:27 -07:00
2025-03-31 13:09:27 -07:00
2025-04-04 08:54:09 -07:00
2025-04-03 16:24:02 -07:00
2025-04-02 20:37:36 -07:00
2025-04-02 20:37:36 -07:00
2025-03-25 14:35:14 -07:00
2025-03-31 13:09:27 -07:00
2025-04-02 13:46:11 -07:00
2025-03-31 13:09:27 -07:00