Files
0ad/binaries
Fabio Pedretti 36eb25de3a Return early on an exact match in getClosestPointTo()
If a point at squared distance 0 is found, no closer point can exist, so
return it immediately instead of scanning the rest of the points. The
returned point is the same as before, since the first point with the
smallest distance was already the one kept.
2026-10-12 16:24:13 +02:00
..
2024-12-10 11:29:48 +01:00