◆ Encapsulating() [1/2]

static Rect Encapsulating ( this Rect  rect,
Vector2  point 
)
static
Parameters
recta Reference to the Rect that will be adjusted.
pointThe 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.