$\cos\theta=\left(\frac{zt}{a}\right)^{1/2},$