예제 #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
파일: RadialRegion.cs 프로젝트: tohfe/Olive
 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());
 }