示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Center.GetHashCode();
         hashCode = (hashCode * 397) ^ LongitudeDegrees.GetHashCode();
         hashCode = (hashCode * 397) ^ LatitudeDegrees.GetHashCode();
         return(hashCode);
     }
 }
示例#2
0
 bool Equals(MapSpan other)
 {
     return(Center.Equals(other.Center) && LongitudeDegrees.Equals(other.LongitudeDegrees) && LatitudeDegrees.Equals(other.LatitudeDegrees));
 }
示例#3
0
 bool Equals(RadialRegion other)
 {
     return(Center.Equals(other.Center) && LongitudeDegrees.Equals(other.LongitudeDegrees) && LatitudeDegrees.Equals(other.LatitudeDegrees));
 }
示例#4
0
 public override int GetHashCode()
 {
     return(LatitudeDegrees.GetHashCode()
            ^ LongitudeDegrees.GetHashCode()
            ^ RadiusAU.GetHashCode());
 }