function triangle_angles_test ( )

%*****************************************************************************80
%
%% TRIANGLE_ANGLES_TEST tests TRIANGLE_ANGLES.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    22 October 2015
%
%  Author:
%
%    John Burkardt
%
  t = [ ...
    0.0, 1.0; ...
    0.0, 0.0; ...
    1.0, 0.0 ]';

  fprintf ( 1, '\n' );
  fprintf ( 1, 'TRIANGLE_ANGLES_TEST\n' );
  fprintf ( 1, '  TRIANGLE_ANGLES computes the angles of a triangle.\n' );

  r8mat_transpose_print ( 2, 3, t, '  Triangle vertices:' );

  angle = triangle_angles ( t );

  fprintf ( 1, '\n' );
  fprintf ( 1, '      Radians      Degrees\n' );
  fprintf ( 1, '\n' );
  for i = 1 : 3
    fprintf ( 1, '  %12f  %12f\n', angle(i), angle(i) * 180.0 / pi );
  end

  return
end
