def box_contains_point(bx, by, bw, bh, px, py):
    """
    Check if a box contains a point.
    :param bx:
    :param by:
    :param bw:
    :param bh:
    :param px:
    :param py:
    :return:
    """
    return bx <= px <= (bx + bw) and by <= py <= (by + bh)