function edge_translate_test ( )

%*****************************************************************************80
%
%% edge_translate_test tests edge_translate().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    05 November 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'edge_translate_test\n' );
  fprintf ( 1, '  edge_translate() translates a polyiamond\n' );
  fprintf ( 1, '  described by its edge word.\n' );

  e0 = edge_gort ( );

  d = [ -6, + 2 ];
  e1 = edge_translate ( e0, d );
%
%  Get the plot range.
%
  [ imin0, imax0, jmin0, jmax0 ] = edge_range ( e0 );
  [ imin1, imax1, jmin1, jmax1 ] = edge_range ( e1 );

  imin = min ( [ 0, imin0, imin1 ] );
  imax = max ( [ 0, imax0, imax1 ] ) + 1;
  jmin = min ( [ 0, jmin0, jmin1 ] );
  jmax = max ( [ 0, jmax0, jmax1 ] ) + 1;
%
%  Draw the parallelogram grid.
%
  clf ( );
  hold ( 'on' );
  clf ( );
  hold ( 'on' );
  r = 0.85;
  color_back = 'cyan';
  color_tri =  'white';
  number = false;
  grid_plot ( imin, imax, jmin, jmax, r, color_back, color_tri, number );
%
%  Draw the polyiamond.
%
  color = 'cyan';
  number = false;
  edge_plot ( e0, color, number );

  color = 'red';
  number = false;
  edge_plot ( e1, color, number );

  axis ( 'equal' );
  axis ( 'off' );
  title ( 'edge translate test' )
  hold ( 'off' );

  filename = 'edge_translate_test.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'edge_translate_test\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

