function edge_length = triangle_edge_length ( t )

%*****************************************************************************80
%
%% triangle_edge_length() returns edge lengths of a triangle in 2D.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    29 July 2023
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real T(3,2), the triangle vertices.
%
%  Output:
%
%    real EDGE_LENGTH(3,1), the length of the edges.
%
  edge_length = zeros ( 3, 1 );

  for i1 = 1 : 3
    i2 = i4_wrap ( i1 + 1, 1, 3 );
    edge_length(i1,1) = norm ( t(i2,1:2) - t(i1,1:2) );
  end

  return
end
