def get_angle_from_rotated_rect(rotrect):
    """
        Computes the relative angle to the sub needed to align
        to the rectangle along its long axis.
    """
    # True if taller than wide
    if rotrect[1][0] < rotrect[1][1]:
        return rotrect[2]
    return rotrect[2] + 90