First, think of a right triangle by going from point up to the corner of the cube. The distance from to the top corner has a length of
Now think of a diagonal line from this corner of the cube across to point . The length of this diagonal can be calculated with the Pythagorean theorem:
Now you can calculate the length of :
To calculate the angle, you need a second side of the triangle. Namely that of .
If you now draw the height in the triangle (where the line represents the base side), you get two right-angled triangles. You look at the upper one. In this one you know the length of the opposite cathetus () of and the length of the hypotenuse (). With these two sides you are now able to calculate the angle. For this you use the sine: