Exemple #1
0
        /// <summary>
        /// Returns distance in meters between two cities
        /// </summary>
        public float Distance(City city1, City city2)
        {
            PolygonPoint latlon1 = _map.GetLatLonFromSpherePoint(city1.unitySphereLocation);
            PolygonPoint latlon2 = _map.GetLatLonFromSpherePoint(city2.unitySphereLocation);

            return(Distance(latlon1.Xf, latlon1.Yf, latlon2.Xf, latlon2.Yf));
        }