def _covert_360_to_180(degrees: float) -> float:
    """
    converts from range (0, 360) to (-180, 180)

    :param degrees: the angle to convert from in degrees
    :return: the converted value in range (-180, 180)
    """
    if degrees > 180:
        return degrees - 360
    return degrees