def get_acc(y, y_hat, dis):
    total = 0
    total = 0
    for i in range(4):
        total += ((((y[i][0] - y_hat[i][0]) ** 2) + ((y[i][1] - y_hat[i][1]) ** 2)) ** 0.5)
    total /= 4
    if (total < dis):
        return 1
    else:
        return 0
def get_acc(y, y_hat, dis):
    total = 0
    total = 0
    for i in range(4):
        total += ((((y[i][0] - y_hat[i][0]) ** 2) + ((y[i][1] - y_hat[i][1]) ** 2)) ** 0.5)
    total /= 4
    if (total < dis):
        return 1
    else:
        return 0