Tesseract — the cube of the fourth dimension (3D)
About this app
A 4D cube turns in a chosen plane and is projected into space: in an xw, yw or zw rotation the inner cube seems to turn inside out, although all 32 edges stay equally long in 4D. A true slice with the hyperplane w = c shows what a 3D being would see. Exhibit-ready: also stands on a plinth in "Knowledge as space".
The idea
The tesseract is the four-dimensional counterpart of the cube. Its vertices are all points (±1, ±1, ±1, ±1), sixteen of them. It has 32 edges of equal length, 24 square faces and 8 cubes as cells. We can only see it as a projection into three-dimensional space, just as a cube drawn on paper becomes a square inside a square. In 4D an object rotates not about an axis but within a plane, such as the x–w plane.
What you see
The tesseract rotates in a plane you choose (x–w, y–w, z–w or x–y) and is projected into space either in perspective or in parallel. In rotations involving the w axis, the inner cube appears to turn inside out, even though every edge keeps length 2 in 4D; only the shadows change. The two cubes w = ±1 can be coloured. A slice by the hyperplane w = c shows what a three-dimensional being would see of the tesseract, with the vertex and edge count of the slice.
Things to try
Stop the rotation and set the angle in a plane by hand. Compare a rotation in the x–y plane, which looks like an ordinary 3D rotation, with one in the x–w plane. Switch between perspective and parallel projection and watch the visible edge lengths in the Values panel. Then turn on the slice and move w: depending on position and rotation, different solids appear, and outside the tesseract the slice is empty.
Frequently asked questions
- What is a tesseract?
- A tesseract (hypercube, 4-cube) is the cube in four dimensions. It has 16 vertices, 32 edges, 24 squares and 8 cubes as bounding cells. You get it by moving a cube in a fourth direction perpendicular to all three spatial directions and joining old and new vertices.
- Why does a rotating tesseract seem to turn inside out?
- What you see is a projection into three-dimensional space. In a perspective projection the part farther away in the w direction looks smaller and appears as an inner cube. When the tesseract rotates in a plane containing the w axis, inside and outside swap roles. In 4D the object stays rigid and all edges keep the same length.
- What do you get when you slice a 4D cube with a 3D space?
- Slicing a tesseract with a hyperplane w = c gives a three-dimensional solid. If the tesseract is axis-aligned and |c| < 1, the slice is a cube. If it is rotated, other polyhedra can appear, much like a cube cut at an angle can show a triangle or a hexagon.
- What can I control in the tesseract app?
- You choose the rotation plane, speed and angle, switch between perspective and parallel projection, and colour the cubes w = ±1. With the slice you move a hyperplane w = c and see the vertices and edges of the resulting solid.
Subject: Linear algebra
More from Linear algebra
- Eigenvectors
- Gaussian elimination step by step
- Equations as scales
- Linear combination & linear independence (3D)
- Matrix × vector
- Matrizen rechnen: Produkt, Inverse, Transponierte
- Matrices like numbers: identity, inverse, A·x = b
- Matrix multiplication
A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps