function [ x, y ] = ellipse_xy_from_t ( a, b, t ):

%*****************************************************************************80
%
%% ellipse_xy_from_t() converts ellipse points from angle to Cartesian coordinates.
%
%  Discussion:
%
%    The ellipse has major and minor semi-axes a and b.  In particular, it
%    could have the form:
%
%      (x/a)^2 + (y/b)^2 = 1
%
%    We compute
%
%      x = a cos ( t )
%      y = b sin ( t )
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    10 November 2022
%
%  Author:
%
%    John Burkardt
%
%  Reference:
%
%    John D Cook,
%    Uniform Sampling from an Ellipse,
%    https://www.johndcook.com/blog/2022/11/02/ellipse-rng/
%    Posted 02 November 2022.
%
%  Input:
%
%    real A, B: the major and minor semi-axes.
%
%    real T(N): the angular coordinates of the points.
%
%  Output:
%
%    real X(N), Y(N): the Cartesian coordinates of the points.
%
  x = a * cos ( t );
  y = b * sin ( t );

  return
end

