示例#1
0
 public void MergeFrom(ScanResult other)
 {
     if (other == null)
     {
         return;
     }
     position_.Add(other.position_);
     if (other.picrutesize_ != null)
     {
         if (picrutesize_ == null)
         {
             picrutesize_ = new global::PosPoint();
         }
         Picrutesize.MergeFrom(other.Picrutesize);
     }
     if (other.Result.Length != 0)
     {
         Result = other.Result;
     }
     if (other.Angle != 0F)
     {
         Angle = other.Angle;
     }
     if (other.center_ != null)
     {
         if (center_ == null)
         {
             center_ = new global::PosPoint();
         }
         Center.MergeFrom(other.Center);
     }
 }
示例#2
0
    public override int GetHashCode()
    {
        int hash = 1;

        hash ^= position_.GetHashCode();
        if (picrutesize_ != null)
        {
            hash ^= Picrutesize.GetHashCode();
        }
        if (Result.Length != 0)
        {
            hash ^= Result.GetHashCode();
        }
        if (Angle != 0F)
        {
            hash ^= Angle.GetHashCode();
        }
        return(hash);
    }