I am trying to find the angle of a parametric line so that it will intersect a circular parametric curve when both of their parameters are equal. I also need to have the line's start position be defined by another parametric curve. What I have so far is this:
The application for this is somewhat contrived, as I'm trying to find the angle of a rocket launched from Planet A to Planet B. I'm not taking into account any sort of physics, I'm just assuming the rocket flies in a straight line with constant velocity once it leaves Planet A's surface.I'm also assuming the planets have negligible size and mass. I'm trying to find the angle I need to launch it at to intercept Planet B, which is orbiting further out than Planet A.
$r$ = distance from center of solar system
$p$ = period of orbit
$\alpha$ = phase shift of planet A
$\beta$ = phase shift of planet B
$v$ = speed of rocket
$\phi$ = angle of launch
$x_A(t) = r_A*cos(\frac{2\pi}{p_A}(t + \alpha))$
$y_A(t) = r_A*sin(\frac{2\pi}{p_A}(t + \alpha))$
$x_B(t) = r_B*cos(\frac{2\pi}{p_B}(t + \beta))$
$y_B(t) = r_B*sin(\frac{2\pi}{p_B}(t + \beta))$
$x_{rocket}(t) = v*cos(\phi)*t$
$y_{rocket}(t) = v*sin(\phi)*t$
What I've come up with so far is solving the x and y component as two equations, solving for time of flight and angle of launch. I have two times, time of launch ($t_o$), which is when the rocket leaves Planet A's surface, and time of flight ($t$). I make $t_o$ a constant and end up with these equations
$x_B(t_o+t) = x_{rocket}(t) + x_A(t_o)$
$y_B(t_o+t) = y_{rocket}(t) + y_A(t_o)$
However, when I expand these, they become
$r_B*cos(\frac{2\pi}{p_B}(t_o + t + \beta)) = v*cos(\phi)*t + r_A*cos(\frac{2\pi}{p_A}(t_o + \alpha))$
$r_B*sin(\frac{2\pi}{p_B}(t_o + t + \beta)) = v*sin(\phi)*t + r_A*sin(\frac{2\pi}{p_A}(t_o + \alpha))$
I'm not sure if these are solvable, at least without actual numbers for the constants. Is there a better way to approach this than what I'm doing now?