Crossing a point pole: Distance = Train Length. Crossing an extended platform: Distance = Train Length + Platform Length.
Relative speed adds in opposite directions!