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.
Rect2i by position and size.
Rect2i by x, y, width, and height.
Constructs a new
Rect2i from Rect2. The floating point coordinates will be truncated.