function house_translation_test ( )

%*****************************************************************************80
%
%% house_translation_test() applies the translation map to the house.
%
%  Discussion:
%
%    Translation is NOT a linear mapping.
%
%  License:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    16 January 2020
%
%  Author:
%
%    John Burkardt.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'house_translation_test():\n' );
  fprintf ( 1, '  Apply the translation map to the house.\n' );

  H0 = house ( );
  H0(:,end+1) = H0(:,1);
  [ m, n ] = size ( H0 );

  t1 = [ - 3.0; 0.0 ];
  H1 = H0 + t1;

  t2 = [ 0.0; 2.0 ];
  H2 = H0 + t2;

  t3 = [ 4.0; 4.0 ];
  H3 = H0 + t3;

  clf ( );
  hold ( 'on' );
  plot ( H0(1,:), H0(2,:), 'c.-', 'markersize', 18, 'linewidth', 6 );
  plot ( H1(1,:), H1(2,:), 'r.-', 'markersize', 18, 'linewidth', 2 );
  plot ( H2(1,:), H2(2,:), 'g.-', 'markersize', 18, 'linewidth', 2 );
  plot ( H3(1,:), H3(2,:), 'b.-', 'markersize', 18, 'linewidth', 2 );
  hold ( 'off' );
  grid ( 'on' );
  axis ( 12 * [ -1, 1, -1, 1 ] );
  axis ( 'square' );
  title ( 'House + t' )

  filename = 'house_translation.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );

  return
end
