◆
Encapsulating()
[2/2]
static Rect Encapsulating
(
this Rect
rect
,
Rect
recttoAdd
)
static
Parameters
rect
a Reference to the Rect that will be adjusted.
recttoAdd
The Rect that should included in the final Rect. This means all corners of this rect will be encapsulated in the final rect.
Returns
The original Rect, specifying position, width and height, possibly modified, to fully encapsulate all corners of the rectoAdd.
EyE
Unity
Extensions
RectExtensions