Utility method to compute total distance all points when choose point on given line has x - coordinate value as X
def compute ( self , p , n , l , x ) : NEW_LINE INDENT res = 0 NEW_LINE y = - 1 * ( l . a * x + l . c ) / l . b NEW_LINE DEDENT