Ejemplo n.º 1
0
 public bool ContainedIn(SimpleArea otherArea)
 {
     if (MinX < otherArea.MinX || MaxX > otherArea.MaxX)
     {
         return(false);
     }
     if (MinY < otherArea.MinY || MaxY > otherArea.MaxY)
     {
         return(false);
     }
     return(true);
 }
Ejemplo n.º 2
0
 public bool Overlaps(SimpleArea otherArea)
 {
     if (MaxX < otherArea.MinX || MinX > otherArea.MaxX)
     {
         return(false);
     }
     if (MaxY < otherArea.MinY || MinY > otherArea.MaxY)
     {
         return(false);
     }
     return(true);
 }