This calculator calculates the hip rafters using r values.
Formula:
H = (B x tan α) / 2
Hip Rafters = √(H2 +(B2 / 2))
H = Roof Rise
B = Roof Base Width
α = Roof Pitch
tan = Tangent