示例#1
0
        public double SquaredDistanceTo(IGeographical other)
        {
            if (!Teams.Any())
            {
                return(0.0);
            }

            return((Latitude - other.Latitude) * (Latitude - other.Latitude) + (Longitude - other.Longitude) * (Longitude - other.Longitude));
        }
示例#2
0
 public double SquaredDistanceTo(IGeographical other)
 {
     return((Latitude - other.Latitude) * (Latitude - other.Latitude) + (Longitude - other.Longitude) * (Longitude - other.Longitude));
 }