Train AB leaves the station at a constant speed, while train CD approaches the station at a different constant speed. We trace the locus of the intersection of the lines joining the fronts of the trains and their backs.
You can drag B to see the trains move, change their lengths and relative speeds.