Example #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));
        }
Example #2
0
 public double SquaredDistanceTo(IGeographical other)
 {
     return((Latitude - other.Latitude) * (Latitude - other.Latitude) + (Longitude - other.Longitude) * (Longitude - other.Longitude));
 }