How does one compute: $$\tan^{-1}\left [ \frac{\cos\left ( 2t \right )}{\sin\left ( 2t \right )} \right ]$$

I came across this in a text and I cannot figure out how the author arrive at the solution $2t + \frac{\pi}{2}$