function polygon_sample_test ( )

%*****************************************************************************80
%
%% polygon_sample_test() tests polygon_sample().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    15 October 2015
%
%  Author:
%
%    John Burkardt
%
  n = 20;
  nv = 6;
  v = [ ...
    0.0, 0.0; ...
    2.0, 0.0; ...
    2.0, 1.0; ...
    1.0, 1.0; ...
    1.0, 2.0; ...
    0.0, 1.0 ]';

  fprintf ( 1, '\n' );
  fprintf ( 1, 'polygon_sample_test():\n' );
  fprintf ( 1, '  polygon_sample() samples a polygon.\n' );

  x = polygon_sample ( nv, v, n );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  sample points:\n' );
  disp ( x );


  return
end

