Fixed "rounding" error (actually due to confusion between distance along the line and distance along XY plane under the line)