"Programming" may be the wrong section for this but i suspect a bit of special coding may be needed so here goes:
I needed to measure the proposed pitch angle of a new re-roof in a photograph of a house and did not know of a utility to achieve this. The homeowner had drawn a line representing the new roof line and I had to find a way of lining up a protractor to read the angle formed by the line which represented the new roof. (Flat roof being converted to pitched gable)
I know of MochiMoppel's onscreen ruler which is brilliant but that ruler sits at either 0 degrees or 90 degrees so cannot be rotated to match the angle within the image.
I thought maybe I could rotate the image to get the roof angle lined up with Mochi's ruler - take length measurements - and apply Pythagoras theorem to work out the angle. But then I realised that Pythagoras requires a right angled triangle.
From vague distant memories I seem to remember that angles other than 90 degrees would require sine, cosine and tangent calculations in order to convert ruler measurements into an actual measurement of angle.
So in order to avoid reliving my high school trigonometry classes I settled on using an online screen protractor at this address:
https://www.ginifab.com/feeds/angle_measurement/
I used MtPaint to "free rotate" the image till one angle was horizontal then read the angle of the other side of the proposed roofline from the protractor. Good enough for my basic re-roof calculations.
But could there be a puppy tool that would allow this?
Maybe a transparent gif image of a circular protractor that could be rotated over an image or screenshot?
Or is there maybe a vector grapphics program that might have a built in protractor?
Any ideas?
.