Added methods to DistanceConverter to calculate changes in x and y