Axiom.RenderSystems.Xna.XnaHelper.IsIdentity C# (CSharp) Method

IsIdentity() public static method

Checks Xna matrix to see if it an identity matrix.
For whatever reason, the equality operator overloads for the Xna Matrix struct are extremely slow....
public static IsIdentity ( Microsoft.Xna.Framework matrix ) : bool
matrix Microsoft.Xna.Framework
return bool
		public static bool IsIdentity( XNA.Matrix matrix )
		{
			if ( matrix.M11 == 1.0f &&
				matrix.M12 == 0.0f &&
				matrix.M13 == 0.0f &&
				matrix.M14 == 0.0f &&
				matrix.M21 == 0.0f &&
				matrix.M22 == 1.0f &&
				matrix.M23 == 0.0f &&
				matrix.M24 == 0.0f &&
				matrix.M31 == 0.0f &&
				matrix.M32 == 0.0f &&
				matrix.M33 == 1.0f &&
				matrix.M34 == 0.0f &&
				matrix.M41 == 0.0f &&
				matrix.M42 == 0.0f &&
				matrix.M43 == 0.0f &&
				matrix.M44 == 1.0f )
			{

				return true;
			}
			else
			{
				return false;
			}
		}