All of the angles between the edges of a cube are 90 degrees. It's a three-dimensional object, so there are more of them, but it's ultimately still a set of perpendicular joints.
Pythagoras gave us a simple formula for finding the hypotenuse length of a triangle with a 90-degree angle in it, and this same formula is the basis of calculating the distance between two points. The cherry on top is that this formula works in
n dimensions. The traditional distance formula, for some number of dimensions, is as follows:
[MATH]d = \sqrt{(x_{2} - x_{1})^2 + (y_{2} - y_{1})^2 + (z_{2} - z_{1})^2 + ...}[/MATH]
This takes two points, [MATH](x, y, z, ...)_{1}[/MATH] and [MATH](x, y, z, ...)_{2}[/MATH], translates the first point to the origin, then calculates the magnitude of the resulting vector. If one corner of your cube is at the origin, what are the coordinates of the opposite corner?