Method
public Rect2i Expand(int amount)
|
public Rect2i Expand(int widthAmount, int heightAmount)
|
Parameters
amount
|
int
|
Amount to expand by
|
widthAmount
|
int
|
Width to expand by
|
heightAmount
|
int
|
Height to expand by
|
Returns
Rect2i
The expanded Rect
DescriptionExpand the rectangular area vertically and horizontally by the given amount. Positive values will grow the rectangle, and negative values will shrink it. Example |