public static bool RectIntersectsRect(Rect a, Rect b) { return FloatUtils.Small(b.x , a.x + a.width) && FloatUtils.Small(a.x , (b.x + b.width)) && FloatUtils.Small(b.y , a.y + a.height) && FloatUtils.Small(a.y , b.y + b.height); }