Computes the perpendicular distance from a point p to the (infinite) line containing the points AB
-
Parameters:
-
p - p the point to compute the distance for
-
A - A one point of the line
-
B - B another point of the line (must be different to A)
-
Returns:
-
the distance from p to line AB