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;
}
}
}