I know that the work done in a closed system is $0$ for this particular case. Also, I know that the work done is independent on the path traced but just the initial and final position.
With these conditions, if a planet while revolving around the sun due to gravitational force goes from point $A$ to point $B$, then is the distance taken as the circular path traveled or just the displacement from $A$ to $B$ for a calculation of work done?