Add closed spline end point's tangent calculate.[ci skip]