BBGamelib.ccUtils.RectIntersectsRect C# (CSharp) Method

RectIntersectsRect() public static method

public static RectIntersectsRect ( Rect a, Rect b ) : bool
a UnityEngine.Rect
b UnityEngine.Rect
return bool
		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); 
		}