Example #1
0
        public static bool Intersects(ref Rectangle2D a, ref Rectangle2D b)
        {
            if (a.Right < b.Left ||
                a.Left > b.Right ||
                a.Top < b.Bottom ||
                a.Bottom > b.Top)
                return false;

            return true;
        }
Example #2
0
 public bool Intersects(Rectangle2D other)
 {
     return Rectangle2D.Intersects(ref this, ref other);
 }