◆
Encapsulating()
[1/2]
static Rect Encapsulating
(
this Rect
rect
,
Vector2
point
)
static
Parameters
rect
a Reference to the Rect that will be adjusted.
point
The point that the rect should include.
Returns
A Rect, specifying position, width and height, that encapsulates the original Rect passing in the parameter and the point passed in the parameter. The original Rect is not modified.
EyE
Unity
Extensions
RectExtensions