and all of the FOV boundary vectors.
      %
      for i=1:NCORNR+1

         if( i &lt;= NCORNR )

            %
            % 'bounds' represents a 3 X NCORNR array with each row a bounds
            % vector. Extract the vectors from 'bounds' using as a vector
            % segment.
            %
            %    corner vector 0: bounds(:,1)
            %    corner vector 1: bounds(:,2)
            %    corner vector 2: bounds(:,3)
            %    corner vector 3: bounds(:,4)
            %
            %