## aspect-ratio
[<img alt="build status" src="https://img.shields.io/github/actions/workflow/status/romnn/aspect-ratio/build.yaml?label=build">](https://github.com/romnn/aspect-ratio/actions/workflows/build.yaml)
[<img alt="test status" src="https://img.shields.io/github/actions/workflow/status/romnn/aspect-ratio/test.yaml?label=test">](https://github.com/romnn/aspect-ratio/actions/workflows/test.yaml)
[](https://deps.rs/repo/github/romnn/aspect-ratio)
[<img alt="docs.rs" src="https://img.shields.io/docsrs/aspect-ratio/latest?label=docs.rs">](https://docs.rs/aspect-ratio)
[<img alt="crates.io" src="https://img.shields.io/crates/v/aspect-ratio">](https://crates.io/crates/aspect-ratio)
Scale a 2D rect to fit or cover one or more bounds, optionally preserving aspect-ratio.
```bash
cargo add aspect-ratio
```
- TODO: add examples