given three.js scene, how 1 calculate theta , phi polar coordinates x, y , z position , rotation property values of three.perspectivecamera?
you need take x, y, , z coordinates , plug them following equations:
source: https://en.wikipedia.org/wiki/spherical_coordinate_system


