Skip to content

dendencat/parametric_structure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

4D Rotating Parametric Space with 3D Spheres 🚀

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.

Features ✨

  • 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

Dependencies 📦

To run this project, you need the following dependencies:

[dependencies]
macroquad = "0.3"

How to Run ▶️

  1. Clone this repository:

    gh repo clone dendencat/parametric_structure
    cd parametric_structure
  2. Install the required dependencies:

    cargo build
  3. Run the project:

    cargo run

Usage Example 🎮

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.

License 📄

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing 🛠️

Bug reports and feature requests are welcome on the Issues page. Pull requests are also welcome!

Author 👨‍💻

About

複雑な次元空間を360度表示する

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages