Recenter the line data for vertical and horizontal lines
The line endpoints to adjust
The menclose node
The direction to offset
The computed line data
Recenter the line data for vertical and horizontal lines