Skip to content

ananyatiwari05/vectorVisualization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vector Visualizations 🪄

A C++ project built with SFML that visually demonstrates 2D vector and matrix transformations. The interface renders a coordinate grid where users can interactively

  • Add and modify vectors
  • Apply transformation matrices such as:
    • 🪄 Rotation
    • 🪄 Scaling
    • 🪄 Shearing
    • 🪄 Reflection
    • 🪄 Matrix Addition
    • 🪄 Matrix Subtraction
    • 🪄 Matrix Projection
  • See real-time graphical feedback as transformations are applied.
  • Maintain a memory stack of the operations performed!

This project bridges the gap between numerical operations and spatial intuition, allowing transformations to be seen and understood dynamically.

Each operation updates the visuals in real time, offering clear insight into how mathematical changes affect geometric vectors.

With a clean layout, responsive visuals, and smooth interactions, this tool makes linear transformations both functional and visually expressive.

Visual Demo Board 🖥️

Initial Grid with Vectors
💟 Controls Tab

Initial Grid with Vectors
📝 Input Pannel

Initial Grid with Vectors Initial Grid with Vectors
👩🏻‍💻 Help Pannel

Initial Grid with Vectors
🧭 Grid Panel: your vector playground

Adding vectors
✏️ Input vectors: with X & Y values

Rotation
🔄 Rotate: Spin the vector to any angle you like

Shearing
🍥 Shear: Skew the shape horizontally or vertically

Scaling
📏 Scale: Stretch or shrink it along X and Y.

Addition
➕ Addition: add two vectors like a pro!

Subtraction
➖ Difference: between two vectors with one click!

Projection
✖️ Projection: of one vector along other quicker than the blink of an eye!

Reflection
🪞 Reflect: Flip across the X or Y axis like a mirror.

Set-up, build and run the project 💫

🍎 macOS

# Install SFML
brew install sfml

# Clone and build
git clone https://github.com/your-username/vector-visualizer.git
cd vector-visualizer
mkdir build && cd build
cmake ..
make

# Run it!
./matrixSFML

🐧 Linux (Ubuntu/Debian)

# Install dependencies
sudo apt update
sudo apt install libsfml-dev cmake build-essential

# Clone and build
git clone https://github.com/your-username/vector-visualizer.git
cd vector-visualizer
mkdir build && cd build
cmake ..
make

# Run it!
./matrixSFML

🪟 Windows (Using MinGW or MSVC)

Install Tools:

  • CMake

  • SFML for Windows

  • A C++ compiler (MSVC or MinGW)

Build with PowerShell:

cd vector-visualizer
Remove-Item -Recurse -Force build
mkdir build
cd build
cmake .. -G "MinGW Makefiles"
mingw32-make

# Run the executable: 
./matrixSFML.exe

About

vector transformations to visualizations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors