public void MergeFrom(Human other) { if (other == null) { return; } if (other.nose_ != null) { if (nose_ == null) { nose_ = new global::Joint(); } Nose.MergeFrom(other.Nose); } if (other.neck_ != null) { if (neck_ == null) { neck_ = new global::Joint(); } Neck.MergeFrom(other.Neck); } if (other.rShoulder_ != null) { if (rShoulder_ == null) { rShoulder_ = new global::Joint(); } RShoulder.MergeFrom(other.RShoulder); } if (other.rElbow_ != null) { if (rElbow_ == null) { rElbow_ = new global::Joint(); } RElbow.MergeFrom(other.RElbow); } if (other.rWrist_ != null) { if (rWrist_ == null) { rWrist_ = new global::Joint(); } RWrist.MergeFrom(other.RWrist); } if (other.lShoulder_ != null) { if (lShoulder_ == null) { lShoulder_ = new global::Joint(); } LShoulder.MergeFrom(other.LShoulder); } if (other.lElbow_ != null) { if (lElbow_ == null) { lElbow_ = new global::Joint(); } LElbow.MergeFrom(other.LElbow); } if (other.lWrist_ != null) { if (lWrist_ == null) { lWrist_ = new global::Joint(); } LWrist.MergeFrom(other.LWrist); } if (other.rHip_ != null) { if (rHip_ == null) { rHip_ = new global::Joint(); } RHip.MergeFrom(other.RHip); } if (other.rKnee_ != null) { if (rKnee_ == null) { rKnee_ = new global::Joint(); } RKnee.MergeFrom(other.RKnee); } if (other.rAnkle_ != null) { if (rAnkle_ == null) { rAnkle_ = new global::Joint(); } RAnkle.MergeFrom(other.RAnkle); } if (other.lHip_ != null) { if (lHip_ == null) { lHip_ = new global::Joint(); } LHip.MergeFrom(other.LHip); } if (other.lKnee_ != null) { if (lKnee_ == null) { lKnee_ = new global::Joint(); } LKnee.MergeFrom(other.LKnee); } if (other.lAnkle_ != null) { if (lAnkle_ == null) { lAnkle_ = new global::Joint(); } LAnkle.MergeFrom(other.LAnkle); } if (other.rEye_ != null) { if (rEye_ == null) { rEye_ = new global::Joint(); } REye.MergeFrom(other.REye); } if (other.lEye_ != null) { if (lEye_ == null) { lEye_ = new global::Joint(); } LEye.MergeFrom(other.LEye); } if (other.rEar_ != null) { if (rEar_ == null) { rEar_ = new global::Joint(); } REar.MergeFrom(other.REar); } if (other.lEar_ != null) { if (lEar_ == null) { lEar_ = new global::Joint(); } LEar.MergeFrom(other.LEar); } if (other.Confidence != 0F) { Confidence = other.Confidence; } }
public override int GetHashCode() { int hash = 1; if (nose_ != null) { hash ^= Nose.GetHashCode(); } if (neck_ != null) { hash ^= Neck.GetHashCode(); } if (rShoulder_ != null) { hash ^= RShoulder.GetHashCode(); } if (rElbow_ != null) { hash ^= RElbow.GetHashCode(); } if (rWrist_ != null) { hash ^= RWrist.GetHashCode(); } if (lShoulder_ != null) { hash ^= LShoulder.GetHashCode(); } if (lElbow_ != null) { hash ^= LElbow.GetHashCode(); } if (lWrist_ != null) { hash ^= LWrist.GetHashCode(); } if (rHip_ != null) { hash ^= RHip.GetHashCode(); } if (rKnee_ != null) { hash ^= RKnee.GetHashCode(); } if (rAnkle_ != null) { hash ^= RAnkle.GetHashCode(); } if (lHip_ != null) { hash ^= LHip.GetHashCode(); } if (lKnee_ != null) { hash ^= LKnee.GetHashCode(); } if (lAnkle_ != null) { hash ^= LAnkle.GetHashCode(); } if (rEye_ != null) { hash ^= REye.GetHashCode(); } if (lEye_ != null) { hash ^= LEye.GetHashCode(); } if (rEar_ != null) { hash ^= REar.GetHashCode(); } if (lEar_ != null) { hash ^= LEar.GetHashCode(); } if (Confidence != 0F) { hash ^= Confidence.GetHashCode(); } return(hash); }