ui_controls.py
def pick_point(px, py, x, y, size=2):
        """ test if a vertex define by px, py, and size
            can be clicked or dragged at x, y (commonly mouse position)
        """
        return abs(x-px)<=size and abs(y-py)<=size
 test if a vertex define by px, py, and size
            can be clicked or dragged at x, y (commonly mouse position)
        
test if a vertex define by px, py, and size
can be clicked or dragged at x, y (commonly mouse position)
test if a vertex define by px py and size can be clicked or dragged at x y ( commonly mouse position )
def pick_point(px, py, x, y, size=2):
        return abs(x-px)<=size and abs(y-py)<=size
def pick_point ( px , py , x , y , size = 2 ) : return abs ( x - px ) <= size and abs ( y - py ) <= size
test if a vertex define by px, py, and size
can be clicked or dragged at x, y (commonly mouse position)
test if a vertex define by px py and size can be clicked or dragged at x y ( commonly mouse position )
""" test if a vertex define by px, py, and size
            can be clicked or dragged at x, y (commonly mouse position)
        """
px
py
x
y
size