I'm trying to draw roof plan layout with only lines is there any logic or mathematical calculations needed to draw roof plan without any software only with code,below is the example
Solution
Assuming the slope is the same on each side, the hips are the bisectors of the eaves.