when is distance equal to displacement

Distance is equal to displacement when an object travels in a straight line with no change in direction. This means that the distance traveled is the same as the displacement, as both measurements represent the total length of the path traveled by the object.