Consider a rod in three dimensional space where $y$ is the height axis. $h$ is the height of the rod and $a$ is the radius of the rod. The function $\rho(r, \theta, y)$ is the density function. The mass of the rod can be calculated with
$$ m =\int_{y=0}^{h}\int_{\theta=0}^{2\pi}\int_{r=0}^{a}\rho(r, \theta, y)rdrd\theta dy $$
similarly the center of mass in the y direction is
$$ C_y = \frac{\int_{y=0}^{h}\int_{\theta=0}^{2\pi}\int_{r=0}^{a}y\rho(r, \theta, y)rdrd\theta dy}{m} \label{1} $$
How can the center of mass in the $x$ and $z$ direction and or in terms of $r$ and $\theta$ be expressed?