line_from_vertical_position now uses binary chop