Could someone please explain why I am getting {x:Infinity, y:-Infinity, z:-Infinity} as my position values {x:0.50516157, y:-0.62950189, z:0} when attempting to project my position vector onto the camera? I have come across a similar issue on Stack Overflow, but the provided solution did not resolve my problem. Any assistance would be greatly appreciated and save me time.
var screenvector = new THREE.Vector3();
var position = new THREE.Vector3();
position = convertLatLontoVec3(lat, lng).multiplyScalar(radius);
//convertLatLontoVec3(returns new THREE.Vector3(x, y, z);)
screenvector.copy(position);
//During debugging, I can see the values of position.x, .y, .z
screenvector.project(camera); //However, after this step is executed, all values become infinity. I'm puzzled by this occurrence.