move `BorderRect` into `bevy_math`
Open
A-Math
A-UI
C-Code-Quality
D-Trivial
S-Ready-For-Implementation
X-Contentious
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 161
Description
## What problem does this solve or what need does it fill?
It's in `bevy_sprite::texture_slice` at the moment. I've been using it in the UI to hold border and padding values though.
## What solution would you like?
Move it into `bevy_math::rects`.
## What alternative(s) have you considered?
We could just use `Rect` to hold inset/border/padding values. Different types make its easier to understand that it represents inset values relative to a rectangle and not a rectangle itself.
Contributor guide
Assessment
This issue has not been assessed yet.