BattleShip.Core.Game.GetGeoDistanceBetween C# (CSharp) Method

GetGeoDistanceBetween() private method

private GetGeoDistanceBetween ( GeoCoordinate first, GeoCoordinate second ) : double
first GeoCoordinate
second GeoCoordinate
return double
        private double GetGeoDistanceBetween(GeoCoordinate first, GeoCoordinate second)
        {
            return Math.Sqrt(Math.Pow(first.Latitude - second.Latitude, 2) + Math.Pow(first.Longitude - second.Longitude, 2));
        }