def zone(A,B,r):
    return ( (B[0] - A[0])**2 + (B[1] - A[1])**2 )**0.5 <= r
