This project visualises a rotating 3D cube using Python. Instead of using numpy library, I decided to implement my own matrix multiplication functions and other linear algebra operations for fun :)
The cube is defined by its vertices that are connected to form a cube. I applied the following rotation matrices along the X, Y, and Z axes to rotate the cube:
To display it, each 3D point is projected to 2D using a perspective projection. The cube continuously rotates by incrementing the rotation angle in each frame.
If you want to see the project in detail, check the GitHub repository.