function contains = triangle_contains ( t, p )

%*****************************************************************************80
%
%% TRIANGLE_CONTAINS determines whether a triangle T contains a point P.
%
  contains = line_side ( t(1:2,1), t(1:2,2), p ) && ...
             line_side ( t(1:2,2), t(1:2,3), p ) && ...
             line_side ( t(1:2,3), t(1:2,1), p );

  return
end
