The tangent vector is set according the condition of an agreement of the second derivates at the first resp. last two data points.