I need to calculate the PDF of a random variable, which is quite similar to what was asked here. However, I have to deal with a shifted cosine function. Thus, my random variable is defined as $$Y:=cos(X+\omega)$$ where $X\sim \mathcal{U}[-\pi, \pi]$ and $\omega \in \mathbb{R}$. In this case, I cannot use the trick with the inversion of the cosine, which was used here to calculate the PDF of $Y$. How can I approach this problem?
Thanks in advance!