Exemplo n.º 1
0
 internal bool Contains(XExtent extent)
 {
     return(extent.GetMinX() >= GetMinX() &&
            extent.GetMinY() >= GetMinY() &&
            extent.GetMaxX() <= GetMaxX() &&
            extent.GetMaxY() <= GetMaxY());
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 internal bool IntersectWith(XExtent _Extent)
 {
     return(!(GetMaxX() < _Extent.GetMinX() || GetMinX() > _Extent.GetMaxX() ||
              GetMaxY() < _Extent.GetMinY() || GetMinY() > _Extent.GetMaxY()));
 }