bevy/crates/bevy_math/src/primitives
irate 83ee6de1da
Remove From implementations from the direction types (#10857)
This removes the `From<Vec2/3>` implementations for the direction types.
It doesn't seem right to have when it only works if the vector is
nonzero and finite and produces NaN otherwise.

Added `Direction2d/3d::new` which uses `Vec2/3::try_normalize` to
guarantee it returns either a valid direction or `None`.

This should make it impossible to create an invalid direction, which I
think was the intention with these types.
2023-12-05 02:44:27 +00:00
..
dim2.rs Remove From implementations from the direction types (#10857) 2023-12-05 02:44:27 +00:00
dim3.rs Remove From implementations from the direction types (#10857) 2023-12-05 02:44:27 +00:00
mod.rs Add winding order for Triangle2d (#10620) 2023-11-20 09:47:05 +00:00