function blend_rst_2dn_stretch_test ( )

%*****************************************************************************80
%
%% blend_rst_2dn_stretch_test() checks for simple errors in the blend coefficients.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 October 2008
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'blend_rst_2dn_stretch_test():\n' );
  fprintf ( 1, '  Shift and stretch test to detect simple errors.\n' );
%
%  Set N to 3.
%
  n = 3;
%
%  Test BLEND_RST_2DN on shift by (1,2,3), stretch by (4,5,6).
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'Shift and stretch test for BLEND_RST_2DN:\n' );
  fprintf ( 1, '\n' );
  r = 0.0;
  s = 0.0;
  t = 0.0;
  x = blend_rst_2dn ( r, s, t, n, @stretch_rst );
  fprintf ( 1, '  %8f  %8f  %8f  %8f  %8f  %8f\n', r, s, t, x(1:3) );

  r = 1.0;
  s = 0.0;
  t = 0.0;
  x = blend_rst_2dn ( r, s, t, n, @stretch_rst );
  fprintf ( 1, '  %8f  %8f  %8f  %8f  %8f  %8f\n', r, s, t, x(1:3) );

  r = 0.0;
  s = 1.0;
  t = 0.0;
  x = blend_rst_2dn ( r, s, t, n, @stretch_rst );
  fprintf ( 1, '  %8f  %8f  %8f  %8f  %8f  %8f\n', r, s, t, x(1:3) );

  r = 0.0;
  s = 0.0;
  t = 1.0;
  x = blend_rst_2dn ( r, s, t, n, @stretch_rst );
  fprintf ( 1, '  %8f  %8f  %8f  %8f  %8f  %8f\n', r, s, t, x(1:3) );

  r = 1.0;
  s = 1.0;
  t = 1.0;
  x = blend_rst_2dn ( r, s, t, n, @stretch_rst );
  fprintf ( 1, '  %8f  %8f  %8f  %8f  %8f  %8f\n', r, s, t, x(1:3) );

  r = 0.5;
  s = 0.5;
  t = 0.5;
  x = blend_rst_2dn ( r, s, t, n, @stretch_rst );
  fprintf ( 1, '  %8f  %8f  %8f  %8f  %8f  %8f\n', r, s, t, x(1:3) );

  return
end
