BattleShip.Core.Game.GetGeoDistanceBetween C# (CSharp) Méthode

GetGeoDistanceBetween() private méthode

private GetGeoDistanceBetween ( GeoCoordinate first, GeoCoordinate second ) : double
first GeoCoordinate
second GeoCoordinate
Résultat 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));
        }