mirror of
https://github.com/bevyengine/bevy
synced 2025-01-13 05:38:54 +00:00
6840f95d62
# 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` |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |