-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optional implementation of HasPosition2D
for glam::Vec2
and glam::DVec2
#63
Comments
HasPosition2D
for glam::Vec2
and glam::DVec2
HasPosition2D
for glam::Vec2
and glam::DVec2
Sorry for the late reply. I'm really torn about how to support external geometry libraries. I really, really dislike gluing code like
My current least-unfavourable solution would probably to simply depend on a proper algebra library - likely Unfortunately, none of this makes interaction with |
Mint is an interop standard which glam supports and nalgebra supports too. The Mint types themselves (e.g. Vector2) don't have any useful operations themselves - they solely exist to work around Rust's orphan rules. Still, if (And FWIW, in case you are still considering depending on a proper algebra library directly: I prefer glam over nalgebra as the latter's generic programming makes compiler error messages a bit painful to understand sometimes. But with Bevy using Glam and Rapier & Parry obviously using nalgebra then I think there's reasonable arguments to be made either way - in the gamedev space at least.) |
I use the
glam
crate in a project where I need to compute a delaunay triangulation. It would be nice to have aHasPosition2D
implementation for theglam
2D vector types. Could this be added as an optional feature?The text was updated successfully, but these errors were encountered: