Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (header_ != null)
            {
                hash ^= Header.GetHashCode();
            }
            if (DrivingMode != 0)
            {
                hash ^= DrivingMode.GetHashCode();
            }
            if (Action != 0)
            {
                hash ^= Action.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (X != 0D)
            {
                hash ^= X.GetHashCode();
            }
            if (Y != 0D)
            {
                hash ^= Y.GetHashCode();
            }
            if (Z != 0D)
            {
                hash ^= Z.GetHashCode();
            }
            if (Timestamp != 0D)
            {
                hash ^= Timestamp.GetHashCode();
            }
            if (Roll != 0D)
            {
                hash ^= Roll.GetHashCode();
            }
            if (Pitch != 0D)
            {
                hash ^= Pitch.GetHashCode();
            }
            if (Yaw != 0D)
            {
                hash ^= Yaw.GetHashCode();
            }
            if (Heading != 0D)
            {
                hash ^= Heading.GetHashCode();
            }
            if (Kappa != 0D)
            {
                hash ^= Kappa.GetHashCode();
            }
            if (LinearVelocity != 0D)
            {
                hash ^= LinearVelocity.GetHashCode();
            }
            if (AngularVelocity != 0D)
            {
                hash ^= AngularVelocity.GetHashCode();
            }
            if (LinearAcceleration != 0D)
            {
                hash ^= LinearAcceleration.GetHashCode();
            }
            if (Gear != 0)
            {
                hash ^= Gear.GetHashCode();
            }
            if (DrivingMode != 0)
            {
                hash ^= DrivingMode.GetHashCode();
            }
            if (pose_ != null)
            {
                hash ^= Pose.GetHashCode();
            }
            return(hash);
        }