Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetHashCode()

override readonly int System.Numerics.Vector< T >.GetHashCode ( )
inline

Definition at line 1038 of file Vector.cs.

1039 {
1040 ThrowHelper.ThrowForUnsupportedNumericsVectorBaseType<T>();
1041 HashCode hashCode = default(HashCode);
1042 for (nint num = 0; num < Count; num++)
1043 {
1044 hashCode.Add(GetElement(num));
1045 }
1046 return hashCode.ToHashCode();
1047 }
readonly T GetElement(nint index)
Definition Vector.cs:2206

References System.HashCode.Add(), System.Numerics.Vector< T >.Count, and System.Numerics.Vector< T >.GetElement().