Here we consider two types of hipped roofs (see picture):
1) Pyramid hip roof - roof base is a square, roof sides are identical isosceles triangles
2) Hip roof - roof base is a rectangle, two sides are identical isosceles triangles and two sides are identical trapeziums.
Here you can calculate hip roof parameters by hip raise and base parameters.