Britbot
static double Britbot.Extensions.EuclidianDistanceSquared ( this IPirateGame  game,
Location  loc1,
Location  loc2 
) [inline, static]

extention method calculating the square of the euclidian distance between two locations

Parameters:
gameFor the compliler magic
loc1first location
loc2second location
Returns:
regular distance squered

Definition at line 51 of file Extentions.cs.

        {
            return Math.Pow(loc1.Col - loc2.Col, 2) + Math.Pow(loc1.Row - loc2.Row, 2);
        }