Пример #1
0
        public override int GetHashCode()
        {
            int hashCode = -1196061383;

            hashCode = hashCode * -1521134295 + Up.GetHashCode();
            hashCode = hashCode * -1521134295 + Down.GetHashCode();
            hashCode = hashCode * -1521134295 + Size.GetHashCode();
            return(hashCode);
        }
Пример #2
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + AudioDevice.GetHashCode();
         hash = hash * 23 + Gain.GetHashCode();
         hash = hash * 23 + Position.GetHashCode();
         hash = hash * 23 + Velocity.GetHashCode();
         hash = hash * 23 + Up.GetHashCode();
         hash = hash * 23 + At.GetHashCode();
         return(hash);
     }
 }
Пример #3
0
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                int hashCode = 41;

                if(Up != null)
                    hashCode = hashCode * 59 + Up.GetHashCode();

                if(Center != null)
                    hashCode = hashCode * 59 + Center.GetHashCode();

                if(Eye != null)
                    hashCode = hashCode * 59 + Eye.GetHashCode();

                if(Projection != null)
                    hashCode = hashCode * 59 + Projection.GetHashCode();

                return hashCode;
            }
        }
Пример #4
0
 public override int GetHashCode()
 {
     return(Forward.GetHashCode() ^ Up.GetHashCode());
 }