Allow a function to determine the displacement