Exemple #1
0
 public bool Touches(GridBoundingBox other)
 {
     return((XInterval.Touches(other.XInterval) &&
             (YInterval.Overlaps(other.YInterval) || YInterval.Touches(other.YInterval))) ||
            (YInterval.Touches(other.YInterval) &&
             (XInterval.Overlaps(other.XInterval) || XInterval.Touches(other.XInterval))));
 }
Exemple #2
0
 public bool Overlaps(GridBoundingBox other)
 {
     return(XInterval.Overlaps(other.XInterval) && YInterval.Overlaps(other.YInterval));
 }