Suppose if tanks has to rotate its main gun by $30^\circ$ to hit the target, what will be its new $(x,y)$ coordinate or a formula to calculate it as shown in image?
If bullet is fired from the main gun in that direction how to move bullet $((x_1,y_1)(x_2,y_2))$ straight to target or what the formula for bullet to travel from main gun to the target?
Just for assumption we can consider line as bullet in image

What I have tried:
$x=r\cos\theta$ and $y=r\sin\theta$ to calculate new $(x,y)$ but this is possible only if my circle is at origin.
If I get my new $(x,y)$ I will be able to calculate my slope for that line i.e $m=\frac{y2-y1}{x2-x1}$ and then add my slope m each time to move my bullet forward in that direction to hit the target.
It may have already occurred to the poster that one could translate the origin via the equation (x-h)^2+(y-k)^2=r^2 such that the new origin is the values of (h,k).