Turning the curve so that the starting point and ending points are equal.