C.a.R. > Applications > Extremal Values > Double Reflection

Move the points, such that the path becomes minimal. In some situations, the corner is the optimal answer.