def f(A,B):
    return ( (B[0] - A[0])**2 + (B[1] - A[1])**2 ) ** 0.5
