Prepare a function to convert displacement direction wrt lattice vectors to displacement in Cartesian
Handle -d --dim2