Exemplo n.º 1
0
 public bool Intersects(Rectanglei other)
 {
     return((X < other.X + other.Width) &&
            (X + Width > other.X) &&
            (Y < other.Y + other.Height) &&
            (Y + Height > other.Y));
 }
Exemplo n.º 2
0
 public Rectangle(Rectanglei rect)
 {
     X      = rect.X;
     Y      = rect.Y;
     Width  = rect.Width;
     Height = rect.Height;
 }
Exemplo n.º 3
0
        public bool Intersects(Rectanglei other)
        {
            var otherf = new Rectangle(other);

            return(Intersects(otherf));
        }