2D vs 3D Transformation in Computer Graphics
The short answer 2D transformation uses a 3×3 matrix. 3D transformation uses a 4×4 matrix instead. Both rely on one added coordinate. So a 2D point becomes (x, y, 1). A 3D point becomes (x, y, z, 1). That extra…