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); }
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; }