function polygon_minkowski_to_vertices_test ( )

%*****************************************************************************80
%
%% polygon_minkowski_to_vertices_test() tests polygon_minkowski_to_vertices().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    13 November 2024
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'polygon_minkowski_to_vertices_test():\n' );
  fprintf ( 1, '  polygon_minkowski_to_vertices() computes the vertices\n' );
  fprintf ( 1, '  of a polygon from its Minkowski representation.\n' );
%
%  Test 1: 45/45/90 triangle.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Test 1: 45/45/90 triangle\n' );
  fprintf ( 1, '  Normals:\n' );

  u = [ 0.0,          -1.0;           ...
        1.0/2.0, 1.0/2.0; ...
       -1.0/2.0, 1.0/2.0 ];
  disp ( u );

  v = polygon_minkowski_to_vertices ( u );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Vertices:\n' );
  disp ( v );
%
%  Test 2, equilateral triangle.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Test 2: Equilateral triangle\n' );
  fprintf ( 1, '  Normals:\n' );

  u = [ 0.0,          -1.0;   ...
        sqrt(3)/2.0, 1.0/2.0; ...
       -sqrt(3)/2.0, 1.0/2.0 ];
  disp ( u );

  v = polygon_minkowski_to_vertices ( u );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Vertices:\n' );
  disp ( v );

  return
end

