You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
function [x,y]=convert_polar_to_cartesian(t,r,radius)
|
|
t=t*pi/180;
|
|
x0 = r*cos(t);
|
|
y0 = r*sin(t);
|
|
x=[x0 + radius*(-sin(t)), x0 - radius*(-sin(t))];
|
|
y=[y0 + radius*(cos(t)), y0 - radius*(cos(t))];
|