how do i work out 3d Pythagoras
Going from one corner of a rectangular box to the diagonally opposite corner:
(distance through box)2 = (length of box)2 + (width of box)2 + (height of box)2
In a three-dimensional graph:
d = distance x, y, z = axes
d2 = x2 + y2 + z2