public override int GetHashCode() { var hashCode = -926758218; hashCode = hashCode * -1521134295 + Degrees.GetHashCode(); hashCode = hashCode * -1521134295 + Minutes.GetHashCode(); hashCode = hashCode * -1521134295 + Seconds.GetHashCode(); return(hashCode); }
/// <summary> /// Gets hash code for the angle value. /// </summary> /// <returns>Hash code value.</returns> public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + Sign.GetHashCode(); hash = hash * 23 + Degrees.GetHashCode(); hash = hash * 23 + Minutes.GetHashCode(); hash = hash * 23 + Seconds.GetHashCode(); return(hash); } }
/// <summary> /// Returns the hash code for this instance. /// </summary> /// <returns>A 32-bit signed integer that is the hash code for this instance.</returns> public override int GetHashCode() { return(Degrees.GetHashCode()); }
/// <summary> /// Returns a hash code for this <see cref="Rotation" />. /// </summary> /// <returns>An integer value that specifies the hash code for this <see cref="Rotation" />.</returns> public override int GetHashCode() => Degrees.GetHashCode();