public override int GetHashCode() { int hashCode = -1196061383; hashCode = hashCode * -1521134295 + Up.GetHashCode(); hashCode = hashCode * -1521134295 + Down.GetHashCode(); hashCode = hashCode * -1521134295 + Size.GetHashCode(); return(hashCode); }
/// <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); } }
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; } }
public override int GetHashCode() { return(Forward.GetHashCode() ^ Up.GetHashCode()); }