Axiom.RenderSystems.DirectX9.D3DHelper.IsIdentity C# (CSharp) Méthode

IsIdentity() public static méthode

Checks D3D matrix to see if it an identity matrix.
For whatever reason, the equality operator overloads for the D3D Matrix struct are extremely slow....
public static IsIdentity ( SlimDX &matrix ) : bool
matrix SlimDX
Résultat bool
		public static bool IsIdentity( ref DX.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;
			}
		}