I am trying to find the angle between a point and the $z$-axis in the view where $x=y$.
For example: a point $C = (-24, -24, -118)$ as illustrated in the next picture.
how to find the angle shown in the picture below:
PS. My background is not mathematics. An example would be very much appreciated.
Let use dot product by vectors $\vec u=OC=(-24,-24,-118)$ and $\vec v=(0,0,1)$ that is
$$\cos \theta=\frac{\vec u\cdot \vec v}{|\vec u||\vec v|}\implies \theta = \arccos \frac{\vec u\cdot \vec v}{|\vec u||\vec v|}$$
Note that in this way we find the angle measured from positive direction of z axes. The angle indicated in the picture is its complement $180°-\theta$.