def angle_in_bounds(angle, min_angle, max_angle):
    """
    Determine if an angle is between two other angles.
    """
    if min_angle <= max_angle:
        return min_angle <= angle <= max_angle
    else:
        # If min_angle < max_angle then range crosses
        # zero degrees, so break up test
        # into two ranges
        return (min_angle <= angle <= 360) or (max_angle >= angle >= 0)