Axiom.Math.Matrix4.GetHashCode C# (CSharp) Method

GetHashCode() public method

Provides a unique hash code based on the member variables of this class. This should be done because the equality operators (==, !=) have been overriden by this class.

The standard implementation is a simple XOR operation between all local member variables.

public GetHashCode ( ) : int
return int
		public override int GetHashCode()
		{
			int hashCode = 0;

			unsafe
			{
				fixed ( Real* pM = &m00 )
				{
					for ( int i = 0; i < 16; i++ )
						hashCode ^= (int)( *( pM + i ) );
				}
			}

			return hashCode;
		}