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

this() public method

Allows the Matrix to be accessed like a 2d array (i.e. matrix[2,3])
This indexer is only provided as a convenience, and is not recommended for use in intensive applications.
public this ( int row, int col ) : Real
row int
col int
return Real
		public Real this[ int row, int col ]
		{
			get
			{
				//Debug.Assert((row >= 0 && row < 4) && (col >= 0 && col < 4), "Attempt to access Matrix4 indexer out of bounds.");

				unsafe
				{
					fixed ( Real* pM = &m00 )
						return *( pM + ( ( 4 * row ) + col ) );
				}
			}
			set
			{
				//Debug.Assert((row >= 0 && row < 4) && (col >= 0 && col < 4), "Attempt to access Matrix4 indexer out of bounds.");

				unsafe
				{
					fixed ( Real* pM = &m00 )
						*( pM + ( ( 4 * row ) + col ) ) = value;
				}
			}
		}

Same methods

Matrix4::this ( int index ) : Real