De Gua's Theorem — The Real 3D Pythagorean Theorem
The 2D original computes a right triangle's hypotenuse from c = √(a²+b²). This companion builds the actual solid that generalizes it: a right-angle tetrahedron with three mutually perpendicular edges p, q, r meeting at corner O, exactly like the two catheti of the flat triangle plus one more perpendicular dimension. The three faces touching O (OAB, OBC, OCA) are ordinary right triangles with areas S₁=½pq, S₂=½qr, S₃=½rp — direct 3D analogues of the a² and b² squares drawn in the 2D visualization.
The fourth, slanted face ABC plays the role of the hypotenuse — not as a length this time, but as an area. De Gua's theorem states S(ABC)² = S₁² + S₂² + S₃², the true 3D generalization of a²+b²=c². The readout panel computes both sides live from the cross-product area of triangle ABC and confirms they match to floating-point precision for any p, q, r. The panel also tracks the box's main space diagonal d = √(p²+q²+r²) — the 3D extension of the distance formula referenced in the 2D original's FAQ, applying the same theorem one more time along the third axis. Drag to orbit the camera; scroll to zoom.