Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2004:
[Freeciv-Dev] Re: (PR#9043) map_vector_to_sq_distance function
Home

[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]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#9043) map_vector_to_sq_distance function
From: "Gregory Berkolaiko" <Gregory.Berkolaiko@xxxxxxxxxxxxx>
Date: Sun, 20 Jun 2004 11:03:42 -0700
Reply-to: rt@xxxxxxxxxxx

<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.




[Prev in Thread] Current Thread [Next in Thread]