distance_point2line nrv.utils.distance_point2line(x_p, y_p, a, b)[source] Computes the distance between a point (x_p,y_p) and a line defined as y=a*x+b Parameters: x_p (float) – point x coordinate, y_p (float) – point y coordinate, a (float) – line direction coeefficient b (float) – line y for x = 0 Returns: d – distance between the point and the orthogonal projection of (x_p,y_p) on it Return type: float