internal bool Contains(XExtent extent) { return(extent.GetMinX() >= GetMinX() && extent.GetMinY() >= GetMinY() && extent.GetMaxX() <= GetMaxX() && extent.GetMaxY() <= GetMaxY()); }
public void Update(XExtent _Extent, Rectangle _Rectangle) { CurrentMapExtent = _Extent; MapWindowSize = _Rectangle; MapMinX = CurrentMapExtent.GetMinX(); MapMinY = CurrentMapExtent.GetMinY(); WinW = MapWindowSize.Width; WinH = MapWindowSize.Height; MapW = CurrentMapExtent.GetWidth(); MapH = CurrentMapExtent.GetHeight(); ScaleX = MapW / WinW; ScaleY = MapH / WinH; }
internal bool IntersectWith(XExtent _Extent) { return(!(GetMaxX() < _Extent.GetMinX() || GetMinX() > _Extent.GetMaxX() || GetMaxY() < _Extent.GetMinY() || GetMinY() > _Extent.GetMaxY())); }