Exemplo n.º 1
0
    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);
    }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (UserId != 0UL)
            {
                hash ^= UserId.GetHashCode();
            }
            if (bodyLocation_ != null)
            {
                hash ^= BodyLocation.GetHashCode();
            }
            if (bodyRotation_ != null)
            {
                hash ^= BodyRotation.GetHashCode();
            }
            if (head_ != null)
            {
                hash ^= Head.GetHashCode();
            }
            if (neck_ != null)
            {
                hash ^= Neck.GetHashCode();
            }
            if (spine_ != null)
            {
                hash ^= Spine.GetHashCode();
            }
            if (hips_ != null)
            {
                hash ^= Hips.GetHashCode();
            }
            if (leftShoulder_ != null)
            {
                hash ^= LeftShoulder.GetHashCode();
            }
            if (leftArm_ != null)
            {
                hash ^= LeftArm.GetHashCode();
            }
            if (leftHand_ != null)
            {
                hash ^= LeftHand.GetHashCode();
            }
            if (rightShoulder_ != null)
            {
                hash ^= RightShoulder.GetHashCode();
            }
            if (rightArm_ != null)
            {
                hash ^= RightArm.GetHashCode();
            }
            if (rightHand_ != null)
            {
                hash ^= RightHand.GetHashCode();
            }
            if (leftKnee_ != null)
            {
                hash ^= LeftKnee.GetHashCode();
            }
            if (leftFoot_ != null)
            {
                hash ^= LeftFoot.GetHashCode();
            }
            if (rightKnee_ != null)
            {
                hash ^= RightKnee.GetHashCode();
            }
            if (rightFoot_ != null)
            {
                hash ^= RightFoot.GetHashCode();
            }
            return(hash);
        }