private static bool ContainsRect(Rect a, Rect b) { return a.Contains(new Vector2(b.xMin, b.yMin)) && a.Contains(new Vector2(b.xMax, b.yMax)); }