I am working with point clouds and I need to find all of the angles (actually only that ones that the normal forms with the x axis and the z axis) of the normal in each point in my point cloud. The problem is that I don't quite understand how to calculate those values but I know it involves vector translation, vector projection and only working in 2D each time. Could someone please explain in detail how to approach this issue? I'm sorry if the question sounds confusing, I'm also having trouble finding the answer to this on the internet.
EDIT: I talked to the project manager. I need to calculate the angles that the normal makes with the different axis using the spheric coordinate system but I'm still having issues with understanding it.
The answer to the question can be found at cartesian to spherical.