Exemple #1
0
        public override int GetHashCode()
        {
            int result = 7057;

            result = result * 8171 + InternalFlags;
            result = result * 8171 + DontObstructDistance.GetHashCode();
            result = result * 8171 + DontPlayDistance.GetHashCode();
            result = result * 8171 + AttackDistance.GetHashCode();
            result = result * 8171 + MinDistance.GetHashCode();
            result = result * 8171 + SustainBeginDistance.GetHashCode();
            result = result * 8171 + SustainEndDistance.GetHashCode();
            result = result * 8171 + MaxDistance.GetHashCode();
            result = result * 8171 + SustainDB.GetHashCode();
            result = result * 8171 + SkipFraction.GetHashCode();
            result = result * 8171 + MaxPendPerSec.GetHashCode();
            result = result * 8171 + GainBase.GetHashCode();
            result = result * 8171 + GainVariance.GetHashCode();
            result = result * 8171 + RandomPitchBoundsMin;
            result = result * 8171 + RandomPitchBoundsMax;
            result = result * 8171 + InnerConeAngle.GetHashCode();
            result = result * 8171 + OuterConeAngle.GetHashCode();
            result = result * 8171 + OuterConeGain.GetHashCode();
            result = result * 8171 + Flags;
            result = result * 8171 + Azimuth.GetHashCode();
            result = result * 8171 + PositionalGain.GetHashCode();
            result = result * 8171 + FirstPersonGain.GetHashCode();
            return(result);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         return((Azimuth.GetHashCode() * 397) ^ Altitude.GetHashCode());
     }
 }
Exemple #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Azimuth.GetHashCode();
         hashCode = (hashCode * 397) ^ Altitude.GetHashCode();
         hashCode = (hashCode * 397) ^ Distance.GetHashCode();
         return((hashCode * 397) ^ ParallacticAngle.GetHashCode());
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + Altitude.GetHashCode();
         hash = hash * 23 + Azimuth.GetHashCode();
         return(hash);
     }
 }
Exemple #5
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Azimuth.GetHashCode();
         hashCode = (hashCode * 397) ^ Elevation.GetHashCode();
         hashCode = (hashCode * 397) ^ Range.GetHashCode();
         hashCode = (hashCode * 397) ^ RangeRate.GetHashCode();
         return(hashCode);
     }
 }
Exemple #6
0
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hash = 17;
         // Suitable nullity checks etc, of course :)
         hash = hash * 23 + Azimuth.GetHashCode();
         hash = hash * 23 + Altitude.GetHashCode();
         return(hash);
     }
 }
Exemple #7
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</returns>
 public override int GetHashCode()
 {
     return(_speed.GetHashCode() ^ _bearing.GetHashCode());
 }
Exemple #8
0
 public override int GetHashCode()
 {
     return(Range.GetHashCode() * 3 + Azimuth.GetHashCode() * 5 + Elevation.GetHashCode());
 }