Hoover1, that's not entirely correct.
There are two factors: time and closing speed. Vx reduces the closing speed and Vy reduces the time.
The answer lies between the two and is solved by the method that I described above.
Another way to think about it is that you want to maximise the gradient as seen by the moving reference frame of the oncoming aircraft.