Fusion.Core.Mathematics.Half.GetHashCode C# (CSharp) Method

GetHashCode() public method

Returns the hash code for this instance.
public GetHashCode ( ) : int
return int
        public override int GetHashCode()
        {
            ushort num = value;
            return (((num*3)/2) ^ num);
        }

Usage Example

Ejemplo n.º 1
0
 /// <summary>
 /// Returns the hash code for this instance.
 /// </summary>
 /// <returns>A 32-bit signed integer hash code.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         return((X.GetHashCode() * 397) ^ Y.GetHashCode());
     }
 }
All Usage Examples Of Fusion.Core.Mathematics.Half::GetHashCode