PLAN-1: extracted calculations from DirectedLineEdgeRenderer, testcases for DirectedLineEdgeCalculator