def box_fit_2d(points: list) ->float:
    """Returns an angle that best fits the points to an axis aligned rectangle 

    :param points: list of 2d points. 
    :type points: list
    :return:  angle 
    """
    pass
