[Freeciv-Dev] Re: (PR#9043) map_vector_to_sq_distance function
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=9043 >
On Sun, 20 Jun 2004, Jason Short wrote:
> In three places the formula for determining "square distance" is coded
> as a pythagorean distance:
>
> dx * dx + dy * dy
>
> This patch unifies those into one function, map_vector_to_sq_distance.
Why such a name though?
I would suggest vector_mod_sq or vector_norm_sq or vector_length_sq for
laymen.
G.
- [Freeciv-Dev] Re: (PR#9043) map_vector_to_sq_distance function,
Gregory Berkolaiko <=
|
|