https://github.com/hanzdr/2d-3d-object-transformation
For my Linear Algebra Project Defense
https://github.com/hanzdr/2d-3d-object-transformation
matplotlib-python matrix numpy
Last synced: about 2 months ago
JSON representation
For my Linear Algebra Project Defense
- Host: GitHub
- URL: https://github.com/hanzdr/2d-3d-object-transformation
- Owner: HanzDr
- Created: 2025-11-05T11:08:02.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2025-11-05T11:14:09.000Z (7 months ago)
- Last Synced: 2025-11-05T13:12:24.127Z (7 months ago)
- Topics: matplotlib-python, matrix, numpy
- Language: Python
- Homepage:
- Size: 18.8 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 🌀 Transform Playground
An educational Python project for visualizing **2D and 3D geometric transformations** such as rotation, scaling, and translation — built with **NumPy** and **Matplotlib**.
---
## 🎯 Features
### ✅ 2D Mode
- to run: python 2d-playground.py
- Rotate and scale 2D shapes (like squares or polygons)
- Interactive version lets you **drag vertices** and **use sliders** for live transformations
### ✅ 3D Mode
- to run: python 3d-playground.py
- Rotate, scale, and translate a cube in 3D space
- Adjust **rotation angles (X, Y, Z)** and **scale** with interactive sliders
- **Orbit and zoom** the camera using your mouse
- Optional: drag vertices in screen space to reshape the cube
---
## 🧰 Requirements
- Python 3.10 or newer
- Dependencies:
```bash
Python Manager
```
- How to run the file:
``` bash
python -m venv venv
venv\Scripts\activate on Windows
pip install -r requirements.txt
```