Currently, we only support DVec2/DVec3 from Glam. But what if you want to use Nalgebra, or something else?
We could make the convex hull types generic over the vector and scalar types by introducing some traits. The algorithms don't actually use too much math beyond basic operations, so it shouldn't be too hard. We could then have built-in Glam and Nalgebra support behind feature flags.
Currently, we only support
DVec2/DVec3from Glam. But what if you want to use Nalgebra, or something else?We could make the convex hull types generic over the vector and scalar types by introducing some traits. The algorithms don't actually use too much math beyond basic operations, so it shouldn't be too hard. We could then have built-in Glam and Nalgebra support behind feature flags.