intersectsFrom static method
Returns whether two rectangles intersect. Two rectangles intersect if they touch at all, for example, two zero width and height rectangles would intersect if they had the same top and left. @param {goog.math.Rect} a A Rectangle. @param {goog.math.Rect} b A Rectangle. @return {bool} Whether a and b intersect.
Implementation
static bool intersectsFrom(Rect a, Rect b)
{
return (
a.left <= b.left + b.width && b.left <= a.left + a.width &&
a.top <= b.top + b.height && b.top <= a.top + a.height);
}