https://technicalsource9.medium.com/how-to-find-the-angle-of-a-line-with-respect-to-plot-window-2a3c47d97ee1