bevy/crates/bevy_math
mamekoro 6840f95d62
Implement From<Vec2> for AspectRatio (#12754)
# Objective
Since it is common to store a pair of width and height as `Vec2`, it
would be useful to have an easy way to instantiate `AspectRatio` from
`Vec2`.

## Solution
Add `impl From<Vec2> for AspectRatio`.

---

## Changelog
- Added `impl From<Vec2> for AspectRatio`
2024-03-27 22:32:31 +00:00
..
src Implement From<Vec2> for AspectRatio (#12754) 2024-03-27 22:32:31 +00:00
Cargo.toml Math tests fix (#12748) 2024-03-27 20:48:20 +00:00