def _angleBetween(angle, min_angle, max_angle):
  """Check if `angle` falls between `min_angle` and `max_angle`."""
  angle = angle % 360
  min_angle = min_angle % 360
  max_angle = max_angle % 360
  if min_angle < max_angle:
    return angle >= min_angle and angle <= max_angle
  return angle >= min_angle or angle <= max_angle