I want to know how one can calculate the volume of
$$M := \left \{ \begin{pmatrix} x \\ y \\ z \end{pmatrix} \in \mathbb{R^3}: 0 \leq z \leq 2 \text{ and } x^2 + y^2 \leq z \right \} \text { in } \mathbb{R^3}$$
I have seen a similar question here, but I don't quite understand how you get the function here.
The boundaries would be
$$ V = \int _0 ^2$$
I have also looked at this wikipedia article https://en.wikipedia.org/wiki/Disc_integration, and it says $R(y)$ is the distance between the function and the axis of rotation, but what does that mean?
In cylindrical coordinates, the domain is $0 \leq z \leq 2 \text{ and } z\geq r^2$, whose volume can be integrated as $$V =\int_0^2 \pi r^2 (z)\>dz=\pi\int_0^2 z\>dz=2\pi $$ where $\pi r^2(z)$ is the area at $z$.