Accord.Math.Matrix3x3.GetRow C# (CSharp) Method

GetRow() public method

Get row of the matrix.
Invalid row index was specified.
public GetRow ( int index ) : Vector3
index int Row index to get, [0, 2].
return Vector3
        public Vector3 GetRow( int index )
        {
            if ( ( index < 0 ) || ( index > 2 ) )
                throw new ArgumentException( "Invalid row index was specified.", "index" );

            return ( index == 0 ) ? new Vector3( V00, V01, V02 ) :
                   ( index == 1 ) ? new Vector3( V10, V11, V12 ) : new Vector3( V20, V21, V22 );
        }