When trying to position the camera in a specific location, I usually move the camera and adjust it accordingly to get the desired coordinates. I then store these values for future reference by utilizing the "update" function.
console.log(camera.position);
After logging the camera's position values as:
x: 2.4457938219139463, y: 0, z: 17.37913738929295
I proceed to update the camera position using the retrieved coordinates next time my application is run:
camera.position.set(2.4457938219139463, 0, 17.947541735897405)
camera.lookAt(scene.position);
However, upon running the code, the camera does not necessarily end up at the exact same position as initially set, instead appearing to be positioned close but not exactly where intended originally.