Displacement depends on the initial and final positions.
Displacement is the shortest distance between the initial and final positions of the object.