The Doppler effect equation is: $$f_{\text{observer}} = f_{\text{source}} \left( \frac{v \pm v_{\text{observer}}}{v \pm v_{\text{source}}} \right)$$ where we take the velocity positive when it is from the observer to the listener, otherwise we use the minus sign. Click here for the derivation.
Now my question is what would happen when both the source and the observer would be in a velocity but not in a straight line but in a 2D plane? For example, for moving source and a stationary observer in a plane, the formula is: $$f_{\text{observer}} = f_{\text{source}} \left( \frac{v}{v - v_{\text{source}}\cos{\theta_{s}}} \right)$$ where $\theta_{s}$ is the angle between the sound velocity and the source velocity. Click here for the derivation.
I want to know how to derive the formula when even the observer has its own velocity in the planar case. I found here on the internet that the formula is: $$f_{\text{observer}} = f_{\text{source}} \left( \frac{v - v_{\text{observer}}\cos{\theta_{o}}}{v - v_{\text{source}}\cos{\theta_{s}}} \right)$$ where $\theta_{o}$ is the angle between the sound velocity and observer velocity. But how to derive this formula?