extract core calculation of Line2D shapeFunction in to calcV2()