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()); }
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()); }
public TracedScreenPoint[] GetPath(MapRectangle mapWindow, int zoom, CoordinateSystemIfc csi) { MapRectangle mapWindow2 = mapWindow.GrowFraction(0.1); List <TracedVertex> list = IntersectWithRectangle(mapWindow2); TracedScreenPoint[] array = new TracedScreenPoint[list.Count]; int num = 0; foreach (TracedVertex current in list) { array[num] = new TracedScreenPoint(current.originalIndex, csi.GetTranslationInPixels(new LatLonZoom(mapWindow.GetNW().lat, mapWindow.GetNW().lon, zoom), current.position)); num++; } return(array); }
public TracedScreenPoint[] GetPath(MapRectangle mapWindow, int zoom, CoordinateSystemIfc csi) { MapRectangle mapWindow2 = mapWindow.GrowFraction(0.1); List<TracedVertex> list = this.IntersectWithRectangle(mapWindow2); TracedScreenPoint[] array = new TracedScreenPoint[list.Count]; int num = 0; foreach (TracedVertex current in list) { array[num] = new TracedScreenPoint(current.originalIndex, csi.GetTranslationInPixels(new LatLonZoom(mapWindow.GetNW().lat, mapWindow.GetNW().lon, zoom), current.position)); num++; } return array; }