Add impl From<Dir2> for Vec2
#12529
Labels
A-Math
Fundamental domain-agnostic mathematical operations
C-Feature
A new feature, making something new possible
D-Trivial
Nice and easy! A great choice to get started with Bevy
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
What problem does this solve or what need does it fill?
While review #12516 I noticed there is no impl
From<Dir2> for Vec2
.What solution would you like?
Implement this trait to be able to convert from
Dir2
toVec2
.What alternative(s) have you considered?
Using
Deref
butDir3
andDir3A
both have conversion fromDir*
toVec*
The text was updated successfully, but these errors were encountered: