def point_line_distance(p, l_p, l_v):
l_v = normalize(l_v)<EOL>u = p - l_p<EOL>return np.linalg.norm(u - np.dot(u, l_v) * l_v)<EOL>
Calculate the distance between a point and a line defined
    by a point and a direction vector.