3D Application Pythagorean Theorem