CTor
The edges of the Rectangle
Collapse this Rect. Means that the size is set to 0.
Checks whether this Rect contains the given coordinates.
Checks whether this Rect contains the given coordinates.
Returns the center position of this Rect
Returns the position of the given Edge on this Rect.
Returns the current position as Vector2
Returns the current size as Vector2
Returns an union of the given and this Rect.
Increase current size.
Checks whether this Rect intersects with an other. If, and the parameter 'overlap' isn't null, the colliding rectangle is stored there.
Checks if this Rect is empty (if it's collapsed) with SDL_RectEmpty.
Move the object.
Move the object.
Supported operations: +, -, *, /, %
opEquals: compares two rectangles on their coordinates and their size (but not explicit type).
Set a new position with coordinates.
Set a new position with a vector.
Replace the current size.
Replace the current size.
Rect defines a rectangle structure that contains the left upper corner and the width/height.