function p = triangle_xsi_to_xy ( t, xsi )

%*****************************************************************************80
%
%% triangle_xsi_to_xy() converts from barycentric to XY coordinates 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.
%
%    real XSI(1,3), the barycentric coordinates of a point.
%    XSI(1) + XSI(2) + XSI(3) should equal 1, but this is not checked.
%
%  Output:
%
%    real P(1,2), the XY coordinates of the point.
%
  p = xsi * t;

  return
end
