Function midpointOffset

Return a point located at the midpoint of a line s1 but offset by padding in its normal direction (for labeling).