I am writing a lisp to draw a gable roof, and I am having trouble calculating the points necessary to complete the roof.
I am having trouble calculating points PT6 and PT7 in the example provided.
PT6 and PT7 are needed to get PT8.
All other points listed in the example (attached) I have already found.
The rise of the roof is a variable number from 1 to 12 and therefore the pitch will always be a number over 12.
All other dimensions in the example are fixed and will never change.
Any help would be greatly appreciated.
Thanks in advance…