add distance of linesegment.