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
rect | The outer rect to test. |
other | The inner rect to test. |
includeEdges | Whether to include points that overlap on the edges (default=true). |
Returns
bool | True if the rect fully contains the other rect. |