def line2d_dist(l, p):
 (a, b, c) = l
 (x0, y0) = p
 return abs(((((a * x0) + (b * y0)) + c) / np.sqrt(((a ** 2) + (b ** 2)))))

def line2d_dist ( l , p ) : ( a , b , c ) = l ( x0 , y0 ) = p return abs ( ( ( ( ( a * x0 ) + ( b * y0 ) ) + c ) / np . sqrt ( ( ( a ** 2 ) + ( b ** 2 ) ) ) ) )
distance from line to point line is a tuple of coefficients a .