def _get_tri_dist(p, q, p0, q0, a, b, c, dist):
 return np.sqrt(((((((p - p0) * (p - p0)) * a) + (((q - q0) * (q - q0)) * b)) + (((p - p0) * (q - q0)) * c)) + (dist * dist)))

def _get_tri_dist ( p , q , p0 , q0 , a , b , c , dist ) : return np . sqrt ( ( ( ( ( ( ( p - p0 ) * ( p - p0 ) ) * a ) + ( ( ( q - q0 ) * ( q - q0 ) ) * b ) ) + ( ( ( p - p0 ) * ( q - q0 ) ) * c ) ) + ( dist * dist ) ) )
get the distance to a triangle edge .