How can i calculate polar and azimuth angles?

Hello, I have a simple math question but I can’t figure it out…

My camera is fixed in 0,0,0.5 and I have planes coming to it on the z axis. I’d like to calculate the polar and azimuth angle depending their direction vector (v and c on my drawing). I want to achieve that to rotate the plane depending of their position.

I tried things many things and I didn’t manage to get it right.

azimuthal property is supported in orbitcontrols.

				var azimuthalAngle = controls.getAzimuthalAngle();
				object.rotation.y = azimuthalAngle;

Given the direction of the camera, the polar angle is atan(dir.x, dir.z) and the azimuth angle is acos(dir.y)