# Space diagonal

AC' (shown in blue) is a space diagonal while AC (shown in red) is a face diagonal

In geometry a space diagonal (also interior diagonal or body diagonal) of a polyhedron is a line connecting two vertices that are not on the same face. Space diagonals contrast with face diagonals, which connect vertices on the same face (but not on the same edge) as each other.[1]

For example, a pyramid has no space diagonals, while a cube (shown at right) or more generally a parallelepiped has four space diagonals.

## Axial diagonal

An axial diagonal is a space diagonal that passes through the center of a polyhedron.

For example, in a cube with edge length a, all four space diagonals are axial diagonals, of common length ${\displaystyle a{\sqrt {3}}.}$ More generally, a cuboid with edge lengths a, b, and c has all four space diagonals axial, with common length ${\displaystyle {\sqrt {a^{2}+b^{2}+c^{2}}}.}$

A regular octahedron has 3 axial diagonals, of length ${\displaystyle a{\sqrt {2}}}$, with edge length a.

A regular icosahedron has 6 axial diagonals of length ${\displaystyle a{\sqrt {2+\varphi }}}$, where ${\displaystyle \varphi }$ is the golden ratio ${\displaystyle (1+{\sqrt {5}})/2}$.[2]

## Space diagonals of magic cubes

For a cube to be considered magic, the four space diagonals must each sum to the sum number as does each row, each column, and each pillar.

## r-agonals

This section applies particularly to magic hypercubes.

The magic hypercube community has started to recognize an abbreviated expression for these space diagonals. By using r as a variable to describe the various agonals, a concise notation is possible.

If r =

• 2 then we have a diagonal. 2 coordinates change.
• 3 = a triagonal. 3 coordinates change
• 4 = a quadragonal. 4 coordinates change
• n = the dimension of the hypercube, the 2n-1 agonals are required to sum correctly for the hypercube to be considered magic.

... By extension, if r =

• 1, the line is parallel to a face. Only 1 coordinate changes. A 1-agonal may be called a monagonal, in keeping with a diagonal, a triagonal, etc. Lines parallel to the faces of the hypercube have, in the past, also been referred to as i-rows.

Because the prefix pan indicates all, we can concisely state the characteristics or a magic hypercube.

For example;

• If pan-r-agonals sum correctly for r = 1 and 2, we know the square is pandiagonal magic.
• If pan-r-agonals sum correctly for r = 1 and 3, we have a pantriagonal magic cube (the equivalent of a pandiagonal magic square).
• If the r-agonals sum correctly for r = 1 and n, then the magic hypercube is simple magic regardless of what dimension it is.

The length of an r-agonal of a hypercube with side length a is ${\displaystyle a{\sqrt {r}}}$.