I think this run long enough
The tool is an automatic roofing square, giving all the cuts and lengths per Ft / run traditional roofs.
The cuts (bevels) although 45 deg in plan need to be worked out geometrically to find the actual angle to mark on the timber.
Below shows the face of the square and it’s slightly more modern version IF you know ho to use it.