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