Rename line-distance to segment-distance