Esempio n. 1
0
 public RenderRegion(MapRectangle rect, DirtyEvent parentDirty)
 {
     dirtyEvent = new DirtyEvent(parentDirty);
     vertexList.Add(rect.GetNW());
     vertexList.Add(rect.GetSW());
     vertexList.Add(rect.GetSE());
     vertexList.Add(rect.GetNE());
 }
Esempio n. 2
0
		public RenderRegion(MapRectangle rect, DirtyEvent parentDirty)
		{
			this.dirtyEvent = new DirtyEvent(parentDirty);
			this.vertexList.Add(rect.GetNW());
			this.vertexList.Add(rect.GetSW());
			this.vertexList.Add(rect.GetSE());
			this.vertexList.Add(rect.GetNE());
		}
Esempio n. 3
0
 internal static MapRectangle Union(MapRectangle box1, MapRectangle box2)
 {
     if (box1 == null)
     {
         return(box2);
     }
     if (box2 == null)
     {
         return(box1);
     }
     return(AddToBoundingBox(AddToBoundingBox(box1, box2.GetSW()), box2.GetNE()));
 }
Esempio n. 4
0
 internal static MapRectangle Union(MapRectangle box1, MapRectangle box2)
 {
     if (box1 == null)
     {
         return box2;
     }
     if (box2 == null)
     {
         return box1;
     }
     return AddToBoundingBox(AddToBoundingBox(box1, box2.GetSW()), box2.GetNE());
 }