I am currently utilizing the solution provided in this answer to determine the screen position of 3D objects in three.js:
Converting 3D position to 2D screen position [r69!]
My objective is to draw a 2D line from the position of a 3D object in the scene to a 2D point on the screen. Sometimes, the 3D object may be positioned outside the viewport. In such scenarios, I aim to draw a line from the 2D point on the screen to the edge leading towards the unseen object. However, I require precision in terms of angle and positioning for this line.
Does anyone have any recommendations or suggestions?