def point_dist(p0, p1):
    """
    Calculate distance between two points in 2D.
    :param p0: first point, array like coordinates
    :param p1: second point, array like coordinates
    :return: distance, float
    """
    return ((p1[0] - p0[0])**2 + (p1[1] - p0[1])**2)**(1/2)