def point_in_circle(cir, p):
    """Takes a Circle and a Point and returns True if the
    Point lies in or on the boundary of the circle

    cir: Circle object
    p: Point object
    """

    if abs(cir.center.x-p.x) > cir.radius:
        return False
    if abs(cir.center.y-p.y) > cir.radius:
        return False

    return True