I want to create a cube and a line, and make this line became the spatial diagonal of this cube. Using trigonometry, I know that the angle formed by a line with no rotation and the spatial diagonal is 54.73561031724535. But in a 3D engine system, I am supposed to rotate the line in the x,y,z axis to achieve this. How can I calculate that?
This image make my doubt very clear: https://pbs.twimg.com/media/BGSqw3uCAAAreJf.jpg:large
I am using the Three.js engine to build my cube.