コード例 #1
0
ファイル: RenderRegion.cs プロジェクト: ymx0627/GMap.NET
 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());
 }
コード例 #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());
		}
コード例 #3
0
ファイル: MapRectangle.cs プロジェクト: fr830/Greatmaps-1
 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()));
 }
コード例 #4
0
ファイル: MapRectangle.cs プロジェクト: mikhp/greatmaps
 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());
 }