Here is a quick look at "why" the distance formula can extend to 3 dimensions quite easily.
No download links available.