Processing Forum
Calculate for each point the slope from point n to point n+1 in order to get a line L1
Calculate L2 so that L2 is perpendicular to L1 and passes through nMid which is the point in between n and n+1
Place one point on L2 at x distance of nMid
Place one point on L2 at -x distance of nMid