function triangle_incircle_test ( )

%*****************************************************************************80
%
%% triangle_incircle_test() tests triangle_incircle().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    29 July 2023
%
%  Author:
%
%    John Burkardt
%
  t = [ ...
    0.0, 1.0; ...
    0.0, 0.0; ...
    1.0, 0.0 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'triangle_incircle_test():\n' );
  fprintf ( 1, '  triangle_incircle() computes the incircle of a triangle.\n' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Triangle vertices:\n' );
  disp ( t );

  [ r, center ] = triangle_incircle ( t );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Incircle radius: %f\n', r );
  fprintf ( 1, '  Incircle center: (%f,%f)\n', center );

  return
end
