public static bool IntersectAny(this RectInt rect, IEnumerable <RectInt> others) { foreach (RectInt other in others) { if (rect.Intersect(other)) { return(true); } } return(false); }