neurom.morphmath.dist_point_line

neurom.morphmath.dist_point_line(p, l1, l2)[source]

compute the orthogonal distance between from the line that goes through the points l1, l2 and the point p

Parameters:
  • l1, l2 (p,) – iterable
  • point
  • 0, 1, 2 corresponding to cartesian coordinates (indices) –