function ij_reflect_test ( )

%*****************************************************************************80
%
%% ij_reflect_test tests ij_reflect().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    11 November 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ij_reflect_test\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  ij_reflect reflects a point''s (i,j) coordinates\n' );
  fprintf ( 1, '  about I or J axis or both.\n' );

  p = [ 2, 3 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, '  R:  (I2,J2)  (X2,Y2)\n' );
  fprintf ( 1, '\n' );
  for r = 0 : 3
    p2 = ij_reflect ( p, r );
    q2 = ij_to_xy ( p2 );    
    fprintf ( 1, '  %2d:  (%d,%d)   (%f,%f)\n', r, p2(1), p2(2), q2(1), q2(2) );
  end
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ij_reflect_test\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end
