function circle_triangle_area_2d_test ( )

%*****************************************************************************80
%
%% CIRCLE_TRIANGLE_AREA_2D_TEST tests CIRCLE_TRIANGLE_AREA_2D.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    15 January 2018
%
%  Author:
%
%    John Burkardt
%
  n_test = 12;

  center(1:2) = [ 0.0, 0.0 ];
  r = 2.0;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'CIRCLE_TRIANGLE_AREA_2D_TEST\n' );
  fprintf ( 1, '  CIRCLE_TRIANGLE_AREA_2D computes the area of a\n' );
  fprintf ( 1, '  circular triangle.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '      R            Theta1      Theta2        Area\n' );
  fprintf ( 1, '\n' );

  for i = 0 : n_test

    theta1 = 0.0;
    theta2 = i * 2.0 * pi / n_test;

    area = circle_triangle_area_2d ( r, center, theta1, theta2 );

    fprintf ( 1, '  %10f  %10f  %10f  %10f\n', r, theta1, theta2, area );

  end

  return
end
