Are the endpoints of the light ray path in Fermat's principle must be fixed?
To clarify my question: Using Wikipedia definition for Fermat's Principle:
Fermat's principle states that the path taken by a ray between two given points is the path that can be traversed in the least time. In order to be true in all cases, this statement must be weakened by replacing the "least" time with a time that is "stationary" with respect to variations of the path.
Do the variations on the path must not includes any change in the endpoints of the path?