The Pythagorean Theorem In Three Dimensions