% Plot the chase trajectory in the .... reference frame

vs = 1.;
vt = 1.2;
H = 1.;
mu = vt/vs;

r = @(phi, mu) (cos(phi)).^(mu-1)./(1 + sin(phi)).^mu;

phimin = 0;
phimax = pi/2;
np = 100;
phi = linspace(phimin, phimax, np);

rr = H*r(phi, mu);
xx = -rr .* sin(phi);
yy = -rr .* cos(phi);

mu2 = 2*mu;
rr2 = H*r(phi, mu2);
xx2 = -rr2 .* sin(phi);
yy2 = -rr2 .* cos(phi);

plot(xx, yy);
hold on
plot(xx2, yy2);
grid on;
title('Chase trajectory in the moving reference frame')
