![]() # 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 |