function vertex_contains_point_test ( )

%*****************************************************************************80
%
%% vertex_contains_point_test tests vertex_contains_point().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    04 November 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'vertex_contains_point\n' );
  fprintf ( 1, '  vertex_contains_point() is given a vertex list, and \n' );
  fprintf ( 1, '  determines if a point is inside the polyiamond.\n' );

  ntest = 4;

  p = [ ...
    1.0, 1.0; ...
    3.0, 4.0; ...
    0.0, 2.0; ...
    0.5, -0.25 ];

  v = [ ...
    0.0, 0.0; ...
    1.0, 0.0; ...
    2.0, 1.0; ...
    1.0, 2.0; ...
    0.0, 2.0 ];

  vertex_print ( v, '  Polygon vertex list:' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '          P                 Inside?\n' );
  fprintf ( 1, '\n' );

  for i = 1 : ntest
    inside = vertex_contains_point ( v, p(i,1:2) );
    tf = boolean_to_string ( inside );
    fprintf ( 1, '  %12f  %12f  %s\n', p(i,1), p(i,2), tf );
  end
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'vertex_contains_point_test\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
 
  return
end
