IMSAFE tool: how is the tangential E-field computed?

The tangential component of the E-field is calculated by calculating a directional vector between every two consecutive points along the spline. Then the E-field is interpolated on the root point of that vector, and the E-field vector at that point is projected along the direction of the tangential vector using a simple dot product.