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

this() public method

Allows the Matrix to be accessed linearly (m[0] -> m[15]).
This indexer is only provided as a convenience, and is not recommended for use in intensive applications.
public this ( int index ) : Real
index int
return Real
		public Real this[ int index ]
		{
			get
			{
				//Debug.Assert(index >= 0 && index < 16, "Attempt to access Matrix4 linear indexer out of bounds.");

				unsafe
				{
					fixed ( Real* pMatrix = &this.m00 )
					{
						return *( pMatrix + index );
					}
				}
			}
			set
			{
				//Debug.Assert(index >= 0 && index < 16, "Attempt to access Matrix4 linear indexer out of bounds.");

				unsafe
				{
					fixed ( Real* pMatrix = &this.m00 )
					{
						*( pMatrix + index ) = value;
					}
				}
			}
		}

Same methods

Matrix4::this ( int row, int col ) : Real