3D Linear Transformations
A 3×3 matrix transforms three-dimensional space. Watch how the cube, axes, and volume change under rotation, scaling, shear, and projection.
The cube’s columns follow the images of the basis vectors. Parallel edges stay parallel, and the origin is fixed. The determinant is the signed volume scale: when it hits zero, the cube is flattened into a plane.
What you are seeing
The three columns of the matrix are the images of the standard basis vectors e₁, e₂, e₃.
The cube’s edges follow the transformed basis. Parallel lines stay parallel and the origin stays fixed.
The determinant is the signed volume scale factor. Zero means the cube is flattened into a plane or line.
Why it matters
3D linear transformations are the language of computer graphics, robotics, physics, and continuum mechanics. Every rotation, scale, and shear is a matrix.
Complexity & details
Applying a 3×3 matrix costs O(9) per point. A determinant costs O(1); rendering the cube is O(vertices + edges).
Frequently asked questions
Why does a negative determinant flip the cube?+
A negative determinant reverses orientation, turning a right-handed coordinate system into a left-handed one — a reflection.
What is the difference between 2D and 3D transforms?+
The same linearity rules apply, but 3D adds a third basis direction, rotation axes, and volume scaling instead of area scaling.