def point_inside_rect(pos, x, y, w, h):
    """
    Verifies if a line crosses a rectangle.
    :param pos:
    :param x:
    :param y:
    :param w:
    :param h:
    :return: true if a point is inside a rectangular, false otherwise
    """
    if x <= pos.x <= x + w and y <= pos.y <= y + h:
        return True
    return False