import math


def calc_distance(pos1, pos2):
    """
    Calculate euclidean distance between two positions 
    """
    return round(math.sqrt((pos1[0] - pos2[0]) ** 2 + (pos1[1] - pos2[1]) ** 2), 3)