SFGraphics
SFGraphics copied to clipboard
Port VectorUtils and TriangleListUtils to Rust and add C# bindings
Vector math is several times faster in Rust with Glam. This may require the use of Vector4 arrays for all inputs due to SIMD types being 16 byte aligned. This should probably be a separate project in case the slower, pure C# implementations are preferred.
SIMD could be done using System.Numerics, but that would require converting back and forth between OpenTK and System.Numerics types. This also requires a higher .NET version (4.6 or later).
- [ ] Create a Rust repository with vector utils functions
- [ ] Add C# bindings and tests as a separate project to this repository