How to calculate azimut & elevation relative to a camera direction of view in 3D …?
问题 I'm rusty a bit here. I have a vector (camDirectionX, camDirectionY, camDirectionZ) that represents my camera direction of view. I have a (camX, camY, camZ) that is my camera position. Then, I have an object placed at (objectX, objectY, objectZ) How can I calculate, from the camera point of view, the azimut & elevation of my object ?? 回答1: The first thing I would do, to simplify the problem, is transform the coordinate space so the camera is at (0, 0, 0) and pointing straight down one of the