First, think of a right triangle by going from point to the top 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 the side :
To calculate the angle, you need a second side of the triangle, which is the side .
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: