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||Rect2i ( Vector2 position, Vector2 size )|
|Rect2i||Rect2i ( int x, int y, int width, int height )|
|Rect2i||Rect2i ( Rect2 from )|
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.