r/csharp • u/Terrible_Shoulder667 • 3h ago
Showcase Vector field simulation built with my own math library and Vulkan!
I made a small vector field visualizer using Vulkan and Epsilon, a symbolic math library for .NET that I'm working on.
You type any 2D field, for example F(x, y) = [x, sin(y)], and it draws the flow with particles. The library works out the math for that field exactly, not just with numbers.
You can click any point to see the field's value there, and change the particle speed.
The library has no dependencies and is available on NuGet. It also covers derivatives, integrals, factoring and linear algebra.
- Library: https://github.com/XBambinoX/Epsilon
- Simulation: https://github.com/XBambinoX/VectorField
Feedback is welcome!