Calculating the shortest distance to the relevant anatomical structure in accordance with the position of the tip of the navigation instrument