Hello, I think that's what you're looking for:
https://www.e-education.psu.edu/natureofgeoinfo/book/export/html/1837
Here's a python code that calculates the slope degree (that 'vertical angle' so you know how far 'vertically rotate' the camera):
from math import sqrt , atan, pi
pos = dict(...