This project is a Rust program that projects spheres in a 4-dimensional space into a 3-dimensional space and renders them. It uses the macroquad library to display real-time animations.
- Basic operations on 4-dimensional vectors (addition, subtraction, scalar multiplication)
- Updating the position and velocity of spheres moving in 4-dimensional space
- Managing parameters of a parametric 4-dimensional space
- Rotating 4-dimensional vectors
- Projecting 4-dimensional vectors into 3-dimensional vectors
- Converting HSV colors to RGB colors
- Drawing wireframe spheres and cubes
To run this project, you need the following dependencies:
[dependencies]
macroquad = "0.3"- 
Clone this repository: gh repo clone dendencat/parametric_structure cd parametric_structure
- 
Install the required dependencies: cargo build 
- 
Run the project: cargo run 
When you run the program, spheres in a 4-dimensional space are projected into a 3-dimensional space and displayed in real-time animation. The spheres reflect when they hit the boundaries, and their hues change.
This project is licensed under the MIT License. See the LICENSE file for details.
Bug reports and feature requests are welcome on the Issues page. Pull requests are also welcome!
- GitHub: @dendencat 😺