in what other circumstances might the pythagorean theorem help to determine distance

Other than what?