def collision_rect_point(rect, p):
    """True if point p is inside rectangle rect."""
    x, y = p
    if x <= rect.x_min:
        return False
    if x >= rect.x_max:
        return False
    if y <= rect.y_min:
        return False
    if y >= rect.y_max:
        return False
    return True