[CpmlSegment] Worked offset algorithm
[CpmlSegment] Worked offset algorithm

There are still some inconsistencies: using the slope equations
give different result than using interpolation equations.

ntd/adg,ntd/adg