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)))); }
public bool Overlaps(GridBoundingBox other) { return(XInterval.Overlaps(other.XInterval) && YInterval.Overlaps(other.YInterval)); }