function pt = generateCirclePoints(c,radius,n)
%CIRCLE Create a circle centered at the origin on the X-Y plane
%   Detailed explanation goes here

%   Copyright 2016-2022 The MathWorks, Inc.

nameOfFunction = 'generateCirclePoints';
validateattributes(c,{'numeric'},{'nonempty', 'vector',     ...
                                  'nonnan','finite','real','numel',2},   ...
                                   nameOfFunction,'Center',1);
                               
validateattributes(radius,{'numeric'},{'nonempty','scalar',      ...
                                  'nonnan','finite','real','positive'},   ...
                                   nameOfFunction,'length',2);                               

validateattributes(n,{'numeric'},{'nonempty','scalar', 'nonnan',      ...
                                  'finite','real','integer','positive','>',1},   ...
                                   nameOfFunction,'NumPoints',3);   

del_phi     = 360/n;
phi_start   = 0;
phi_end     = 360 - del_phi;
phi         = linspace(phi_start,phi_end,n);
pt          = em.internal.makecircle(radius,phi);
pt(1,:)     = pt(1,:) + c(1);
pt(2,:)     = pt(2,:) + c(2);
end
