function uniform_in_sector_test ( )

%*****************************************************************************80
%
%% uniform_in_sector_test() tests uniform_in_sector().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    13 April 2022
%
%  Author:
%
%    John Burkardt
%
  n = 300;
  r = 2.0;
  t1 = 0.78;
  t2 = 2.35;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'uniform_in_sector_test():\n' );
  fprintf ( 1, '  uniform_in_sector() maps uniform \n' );
  fprintf ( 1, '  points into a circular sector.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Number of points N = %12d\n', n );
  fprintf ( 1, '  R  = %f\n', r );
  fprintf ( 1, '  T1 = %f\n', t1 );
  fprintf ( 1, '  T2 = %f\n', t2 );

  p = uniform_in_sector ( n, r, t1, t2 );
%
%  Make a plot.
%
  clf ( );
  plot ( p(:,1), p(:,2), 'b.' );
  grid ( 'on' );
  axis ( 'equal' );
  xlabel ( '<--- X --->' );
  ylabel ( '<--- Y --->' );
  title ( 'uniform\_in\_sector()' );
  filename = 'uniform_in_sector.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s".\n', filename );

  return
end
