function volume = tetrahedron_volume ( tetra )

%*****************************************************************************80
%
%% tetrahedron_volume() computes the volume of a tetrahedron.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    13 April 2023
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real tetra(4,3): the vertices of the tetrahedron.
%
%  Output:
%
%    real volume: the volume of the tetrahedron.
%
  A = zeros ( 4, 4 );
  A(1:4,1:3) = tetra(1:4,1:3);
  A(1:4,4) = 1.0;

  volume = abs ( det ( A ) ) / 6.0;

  return
end

