function triangle_incircle_test ( )

%*****************************************************************************80
%
%% TRIANGLE_INCIRCLE_TEST tests TRIANGLE_INCIRCLE.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    23 May 2005
%
%  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' );

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

  [ r, center ] = triangle_incircle ( t );

  r8vec_print ( 2, center, '  Incenter' );

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

  return
end
