2D axis-aligned bounding box using integer coordinates.
[Rect2i] consists of a position, a size, and several utility functions. It is typically used for fast overlap tests. It uses integer coordinates.
https://docs.godotengine.org/en/latest/tutorials/math/index.html
Constructs a [Rect2i] by position and size.
Constructs a [Rect2i] by x, y, width, and height.
Constructs a new [Rect2i] from [Rect2]. The floating point coordinates will be truncated.