1 In three dimensions, the distance from the origin to a corner of a cube is calculated by summing the squares of the coordinates and taking the square root.
“the way distances work in higher dimensions is always to add up the squares of the components in each direction and take the square root”