Trignometry is helpful in triangle based mathematical analysis. One of various trigonometric relation is tan (A+B) $= \frac{tan A + tan B}{1- tan A tan B}$.
Now consider a diagram representing a triangular roof frame ABC with a window frame EFC. BC and EF are horizontal and AD and FC are vertical.