RectExtensions.Contains

Extension Method in RectExtensions

Declaration

public static bool Contains(this Rect rect, Rect other, bool includeEdges = true)

Description

Determines if the rect fully contains another rect.

Parameters

rectThe outer rect to test.
otherThe inner rect to test.
includeEdgesWhether to include points that overlap on the edges (default=true).

Returns

boolTrue if the rect fully contains the other rect.