Three-Dimensional Trigonometry
Every floor direction gives a different angle; the drop straight down from Q finds the right one, and two linked right triangles unfold to give the length and angle in the room.
↺
Room and cable
Section through the beam
Drop tilt from room vertical
Ideal right-triangle geometry. Perspective changes the drawing, not the mathematical lengths or angles.