About way_point_max_distance

If there’s a straight line with 3 points a,b,c on it, will graphhopper stop ignoring point b if I set way_point_max_distance to 0? Is there’s a way to set the way_point_max_distance without using the config file?