Closed codecat closed 6 months ago
There is overloaded + Vector2
and - Vector2
operators for Rect
that already accomplish what you want, but it may be nice to have an actual method like we have for scaling. Additionally, it may not be a bad idea to have overloaded + Point2
and - Point2
operators for RectInt
as well.
Ah! I totally missed that! Makes sense to have named functions indeed, to make sure stuff doesn't get overlooked.
I've added operator +
and operator -
to RectInt
for this PR as well.
Yeah I think this is fine ... I usually also use +/- operators but I think it's nice to have.
I frequently find myself needing these functions, so I figured I'd make a pull request for it. Hopefully it's useful 😊