Comment by CamperBob2
2 years ago
atan2() to the rescue.
Interestingly, as crude as the diagram is, you can feed it to ChatGPT's data analysis plugin and it will not only recognize what's depicted, but offer to calculate the cut angles for the 2x12s given the rise and run. I was pretty impressed that it recognized the problem without any prompting other than the image itself.
Trig was already mentioned. It's definitely not the answer to the question GP is asking.