I have some point $a$ with coordinates $(r,\theta, \phi)$. I can define the position vector from the origin to $a$, simply as $a^i = (r,\theta,\phi)$.
At the same point $a$, there is also some momentum vector $p_i = (p_r, p_{\theta}, p_{\phi})$.
I want to calculate the angle between these two vectors. IF everything was in Cartesian coordinates I could simply do a dot product and calculate the magnitudes of vectors $a^i$ and $p_i$.
My question is how do I do that in spherical polars?
Clearly, I can convert $a^i$ to Cartesian coordinates simply enough, but how would I do the same with the momentum vector? Alternatively, can it be done just staying in spherical polar coordinates?